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.

Preferred events

These events replace the legacy Roles events. Use these events for all new implementations.

Role created

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
  • idstring
    Required

    Identifies the event.

  • timestring

    Timestamp of when the occurrence happened. Must adhere to RFC 3339.

  • typestring
    Required

    Unique identifier for the event type.

  • sourcestring
    Required

    Identifies the context in which an event happened.

  • specversionstring
    Required

    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.

  • tenantidstring
    Required

    Unique identifier for the tenant related to the event.

  • dataobject

    Represents a role entity.

    Show data properties
    • idstring
      Required

      Unique identifier for the role.

    • namestring
      Required

      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"

    • levelstring
      Required

      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.

    • tenantIdstring
      Required

      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.

    • lastUpdatedAtstring
      Required

      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"
}
}

Role deleted

Published when a role is deleted.

Payload

object
  • idstring
    Required

    Identifies the event.

  • timestring

    Timestamp of when the occurrence happened. Must adhere to RFC 3339.

  • typestring
    Required

    Unique identifier for the event type.

  • sourcestring
    Required

    Identifies the context in which an event happened.

  • specversionstring
    Required

    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.

  • tenantidstring
    Required

    Unique identifier for the tenant related to the event.

  • dataobject

    Represents a role entity.

    Show data properties
    • idstring
      Required

      Unique identifier for the role.

    • namestring
      Required

      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"

    • levelstring
      Required

      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.

    • tenantIdstring
      Required

      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.

    • lastUpdatedAtstring
      Required

      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"
}
}

Role synced

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
  • idstring
    Required

    Identifies the event.

  • timestring

    Timestamp of when the occurrence happened. Must adhere to RFC 3339.

  • typestring
    Required

    Unique identifier for the event type.

  • sourcestring
    Required

    Identifies the context in which an event happened.

  • specversionstring
    Required

    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.

  • tenantidstring
    Required

    Unique identifier for the tenant related to the event.

  • dataobject

    Payload containing the roles that were synced.

    Show data properties
    • rolesarray of objects

      Represents a role entity.

      Show roles properties
      • idstring
        Required

        Unique identifier for the role.

      • namestring
        Required

        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"

      • levelstring
        Required

        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.

      • tenantIdstring
        Required

        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.

      • lastUpdatedAtstring
        Required

        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"
}
]
}
}

Role updated

Published when a role is updated. Permission lists are not included in the payload due to payload size limits.

Payload

object
  • idstring
    Required

    Identifies the event.

  • timestring

    Timestamp of when the occurrence happened. Must adhere to RFC 3339.

  • typestring
    Required

    Unique identifier for the event type.

  • sourcestring
    Required

    Identifies the context in which an event happened.

  • specversionstring
    Required

    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.

  • tenantidstring
    Required

    Unique identifier for the tenant related to the event.

  • dataobject

    The event data payload containing the updated role and the _updates field-level change set.

    Show data properties
    • _updatesarray of objects

      Collection of updates performed on the resource.

      Show _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.

    • idstring
      Required

      Unique identifier for the role.

    • namestring
      Required

      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"

    • levelstring
      Required

      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.

    • tenantIdstring
      Required

      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.

    • lastUpdatedAtstring
      Required

      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"
}
}