Roles
Role events notify you about lifecycle changes to roles in your Qlik Cloud tenant, enabling you to track access control modifications and role management activity.
These events replace the legacy Roles events. Use these events for all new implementations.
Published when a role is created. Permission lists are not included in the payload due to payload size limits, but assigned scopes for custom roles will be included.
Payload
object- idstringRequired
Identifies the event.
- timestring
Timestamp of when the occurrence happened. Must adhere to RFC 3339.
- typestringRequired
Unique identifier for the event type.
- sourcestringRequired
Identifies the context in which an event happened.
- specversionstringRequired
The version of the CloudEvents specification which the event uses.
- datacontenttypestring
Content type of the data value. Must adhere to RFC 2046 format.
- useridstring
Unique identifier for the user triggering the event.
- tenantidstringRequired
Unique identifier for the tenant related to the event.
- dataobject
Represents a role entity.
data properties
- idstringRequired
Unique identifier for the role.
- namestringRequired
Name of the role. Custom roles can have user-defined names.
- typestring
Indicates whether role is system/default or custom.
Can be one of: "default""custom"
- levelstringRequired
Indicates whether it is a user or admin-level role.
Can be one of: "admin""user"
- canEditboolean
Indicates whether role can be edited by users or not.
- tenantIdstringRequired
Unique identifier for the tenant associated with the given role.
- canDeleteboolean
Indicates whether role can be deleted by users or not.
- createdAtstring
Timestamp when the role was created.
- createdBystring
Unique identifier for the user who created the role.
- updatedBystring
Unique identifier for the user who last updated the role.
- descriptionstring
Description of the role.
- lastUpdatedAtstringRequired
Timestamp when the role was last updated.
- assignedScopesarray of strings
Selection of scopes added to this role.
- userEntitlementTypestring
Indicates whether this role will trigger promotion of a user from a basic to a full user on tenants with a capacity-based subscription. Does not apply to tenants with a user-based subscription.
-
com.qlik.core.role.created
Example payload of the "Role created" event
{ "id": "A234-1234-1234", "time": "2026-03-22T10:01:02Z", "type": "com.qlik.core.role.created", "source": "com.qlik/identities", "specversion": "1.0", "datacontenttype": "application/json", "userid": "aBcDeFgH1jKlMnOpQrStUvWxYz012345", "tenantid": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT", "data": { "id": "507f191e810c19729de860ea", "name": "TenantAdmin", "type": "default", "level": "admin", "canEdit": false, "tenantId": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT", "canDelete": false, "createdAt": "2021-03-22T10:01:02Z", "createdBy": "6228c560543c200449c13255", "updatedBy": "6228c560543c200449c13255", "description": "Administrator role for the tenant", "lastUpdatedAt": "2026-03-22T10:01:02Z", "assignedScopes": [ "scope.read", "scope.update" ], "userEntitlementType": "fullUser" }}Published when a role is deleted.
Payload
object- idstringRequired
Identifies the event.
- timestring
Timestamp of when the occurrence happened. Must adhere to RFC 3339.
- typestringRequired
Unique identifier for the event type.
- sourcestringRequired
Identifies the context in which an event happened.
- specversionstringRequired
The version of the CloudEvents specification which the event uses.
- datacontenttypestring
Content type of the data value. Must adhere to RFC 2046 format.
- useridstring
Unique identifier for the user triggering the event.
- tenantidstringRequired
Unique identifier for the tenant related to the event.
- dataobject
Represents a role entity.
data properties
- idstringRequired
Unique identifier for the role.
- namestringRequired
Name of the role. Custom roles can have user-defined names.
- typestring
Indicates whether role is system/default or custom.
Can be one of: "default""custom"
- levelstringRequired
Indicates whether it is a user or admin-level role.
Can be one of: "admin""user"
- canEditboolean
Indicates whether role can be edited by users or not.
- tenantIdstringRequired
Unique identifier for the tenant associated with the given role.
- canDeleteboolean
Indicates whether role can be deleted by users or not.
- createdAtstring
Timestamp when the role was created.
- createdBystring
Unique identifier for the user who created the role.
- updatedBystring
Unique identifier for the user who last updated the role.
- descriptionstring
Description of the role.
- lastUpdatedAtstringRequired
Timestamp when the role was last updated.
- assignedScopesarray of strings
Selection of scopes added to this role.
- userEntitlementTypestring
Indicates whether this role will trigger promotion of a user from a basic to a full user on tenants with a capacity-based subscription. Does not apply to tenants with a user-based subscription.
-
com.qlik.core.role.deleted
Example payload of the "Role deleted" event
{ "id": "A234-1234-1234", "time": "2026-03-22T10:01:02Z", "type": "com.qlik.core.role.deleted", "source": "com.qlik/identities", "specversion": "1.0", "datacontenttype": "application/json", "userid": "aBcDeFgH1jKlMnOpQrStUvWxYz012345", "tenantid": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT", "data": { "id": "507f191e810c19729de860ea", "name": "TenantAdmin", "type": "default", "level": "admin", "canEdit": false, "tenantId": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT", "canDelete": false, "createdAt": "2021-03-22T10:01:02Z", "createdBy": "6228c560543c200449c13255", "updatedBy": "6228c560543c200449c13255", "description": "Administrator role for the tenant", "lastUpdatedAt": "2026-03-22T10:01:02Z", "assignedScopes": [ "scope.read", "scope.update" ], "userEntitlementType": "fullUser" }}Published when role definitions are synchronized across the platform. Permission lists are not included in the payload due to payload size limits. Retrieve them from the roles API when required.
Payload
object- idstringRequired
Identifies the event.
- timestring
Timestamp of when the occurrence happened. Must adhere to RFC 3339.
- typestringRequired
Unique identifier for the event type.
- sourcestringRequired
Identifies the context in which an event happened.
- specversionstringRequired
The version of the CloudEvents specification which the event uses.
- datacontenttypestring
Content type of the data value. Must adhere to RFC 2046 format.
- useridstring
Unique identifier for the user triggering the event.
- tenantidstringRequired
Unique identifier for the tenant related to the event.
- dataobject
Payload containing the roles that were synced.
data properties
- rolesarray of objects
Represents a role entity.
roles properties
- idstringRequired
Unique identifier for the role.
- namestringRequired
Name of the role. Custom roles can have user-defined names.
- typestring
Indicates whether role is system/default or custom.
Can be one of: "default""custom"
- levelstringRequired
Indicates whether it is a user or admin-level role.
Can be one of: "admin""user"
- canEditboolean
Indicates whether role can be edited by users or not.
- tenantIdstringRequired
Unique identifier for the tenant associated with the given role.
- canDeleteboolean
Indicates whether role can be deleted by users or not.
- createdAtstring
Timestamp when the role was created.
- createdBystring
Unique identifier for the user who created the role.
- updatedBystring
Unique identifier for the user who last updated the role.
- descriptionstring
Description of the role.
- lastUpdatedAtstringRequired
Timestamp when the role was last updated.
- assignedScopesarray of strings
Selection of scopes added to this role.
- userEntitlementTypestring
Indicates whether this role will trigger promotion of a user from a basic to a full user on tenants with a capacity-based subscription. Does not apply to tenants with a user-based subscription.
-
-
com.qlik.core.role.synced
Example payload of the "Role synced" event
{ "id": "A234-1234-1234", "time": "2026-03-22T10:01:02Z", "type": "com.qlik.core.role.synced", "source": "com.qlik/identities", "specversion": "1.0", "datacontenttype": "application/json", "userid": "aBcDeFgH1jKlMnOpQrStUvWxYz012345", "tenantid": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT", "data": { "roles": [ { "id": "507f191e810c19729de860ea", "name": "TenantAdmin", "type": "default", "level": "admin", "canEdit": false, "tenantId": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT", "canDelete": false, "createdAt": "2021-03-22T10:01:02Z", "createdBy": "6228c560543c200449c13255", "updatedBy": "6228c560543c200449c13255", "description": "Administrator role for the tenant", "lastUpdatedAt": "2026-03-22T10:01:02Z", "assignedScopes": [ "scope.read", "scope.update" ], "userEntitlementType": "fullUser" } ] }}Published when a role is updated. Permission lists are not included in the payload due to payload size limits.
Payload
object- idstringRequired
Identifies the event.
- timestring
Timestamp of when the occurrence happened. Must adhere to RFC 3339.
- typestringRequired
Unique identifier for the event type.
- sourcestringRequired
Identifies the context in which an event happened.
- specversionstringRequired
The version of the CloudEvents specification which the event uses.
- datacontenttypestring
Content type of the data value. Must adhere to RFC 2046 format.
- useridstring
Unique identifier for the user triggering the event.
- tenantidstringRequired
Unique identifier for the tenant related to the event.
- dataobject
The event data payload containing the updated role and the
_updatesfield-level change set.data properties
- _updatesarray of objects
Collection of updates performed on the resource.
_updates properties
- pathstring
Field that was updated.
- newValueany
JSON value of the field after the update. The value can be a scalar, array, object, or null, depending on the field.
- oldValueany
JSON value of the field before the update. The value can be a scalar, array, object, or null, depending on the field.
-
- idstringRequired
Unique identifier for the role.
- namestringRequired
Name of the role. Custom roles can have user-defined names.
- typestring
Indicates whether role is system/default or custom.
Can be one of: "default""custom"
- levelstringRequired
Indicates whether it is a user or admin-level role.
Can be one of: "admin""user"
- canEditboolean
Indicates whether role can be edited by users or not.
- tenantIdstringRequired
Unique identifier for the tenant associated with the given role.
- canDeleteboolean
Indicates whether role can be deleted by users or not.
- createdAtstring
Timestamp when the role was created.
- createdBystring
Unique identifier for the user who created the role.
- updatedBystring
Unique identifier for the user who last updated the role.
- descriptionstring
Description of the role.
- lastUpdatedAtstringRequired
Timestamp when the role was last updated.
- assignedScopesarray of strings
Selection of scopes added to this role.
- userEntitlementTypestring
Indicates whether this role will trigger promotion of a user from a basic to a full user on tenants with a capacity-based subscription. Does not apply to tenants with a user-based subscription.
-
com.qlik.core.role.updated
Example payload of the "Role updated" event
{ "id": "A234-1234-1234", "time": "2026-03-22T10:01:02Z", "type": "com.qlik.core.role.updated", "source": "com.qlik/identities", "specversion": "1.0", "datacontenttype": "application/json", "userid": "aBcDeFgH1jKlMnOpQrStUvWxYz012345", "tenantid": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT", "data": { "_updates": [ { "path": "/attributePath", "newValue": "Dan", "oldValue": "Dylan" } ], "id": "507f191e810c19729de860ea", "name": "TenantAdmin", "type": "default", "level": "admin", "canEdit": false, "tenantId": "VZhiEfgW2bLd7HgR-jjzAh6VnicipweT", "canDelete": false, "createdAt": "2021-03-22T10:01:02Z", "createdBy": "6228c560543c200449c13255", "updatedBy": "6228c560543c200449c13255", "description": "Administrator role for the tenant", "lastUpdatedAt": "2026-03-22T10:01:02Z", "assignedScopes": [ "scope.read", "scope.update" ], "userEntitlementType": "fullUser" }}