All Products
Search
Document Center

Identity as a Service:Address book events

Last Updated:Mar 31, 2026

Address book events describe the callback mechanism that Alibaba Cloud IDaaS uses to notify your application when account, organizational unit, or group data changes. By subscribing to these events, you can keep your application synchronized with IDaaS in real time.

Overview

This topic describes the event parameters and their categories. For integration principles and call flows, see Account synchronization overview.

IDaaS delivers events in three modes:

Event modeTriggerUse case
Test eventAdministrator clicks The test is successful. in the consoleValidates connectivity, signature verification, and encryption after configuring app sync
Incremental eventAutomatically triggered when a change occurs in the IDaaS address bookKeeps your app in sync by processing individual changes as they happen
Full eventManually triggered by an administrator from the IDaaS consoleImports all IDaaS data into the target app at once; typically used for initial onboarding or a full data refresh

For all account and organizational unit events, IDaaS sends the complete record as event parameters. If the payload contains sensitive data, use an HTTPS channel or enable Business Data Encryption.

Event reference

The following table lists all supported event types and their URN codes.

Event moduleEvent typeType code
Test eventTest connectionurn:alibaba:idaas:app:event:common:test
Incremental — userAccount creationurn:alibaba:idaas:app:event:ud:user:create
Account deletionurn:alibaba:idaas:app:event:ud:user:delete
Account basic information updateurn:alibaba:idaas:app:event:ud:user:update_info
Account password updateurn:alibaba:idaas:app:event:ud:user:update_password
Account disableurn:alibaba:idaas:app:event:ud:user:disable
Account enableurn:alibaba:idaas:app:event:ud:user:enable
Account lockurn:alibaba:idaas:app:event:ud:user:lock
Account unlockurn:alibaba:idaas:app:event:ud:user:unlock
Account shifturn:alibaba:idaas:app:event:ud:user:update_primary_ou
Incremental — organizational unitOrganization creationurn:alibaba:idaas:app:event:ud:organizational_unit:create
Organization deletionurn:alibaba:idaas:app:event:ud:organizational_unit:delete
Organization updateurn:alibaba:idaas:app:event:ud:organizational_unit:update
Move organizationurn:alibaba:idaas:app:event:ud:organizational_unit:update_parent_organizational_unit
Incremental — groupGroup creationurn:alibaba:idaas:app:event:ud:group:create
Group basic information updateurn:alibaba:idaas:app:event:ud:group:update
Group deletionurn:alibaba:idaas:app:event:ud:group:delete
Add member to groupurn:alibaba:idaas:app:event:ud:group:add_user
Remove member from groupurn:alibaba:idaas:app:event:ud:group:remove_user
FullFull push of organizational unitsurn:alibaba:idaas:app:event:ud:organizational_unit:push
Full push of accountsurn:alibaba:idaas:app:event:ud:user:push
Full push of groupsurn:alibaba:idaas:app:event:ud:group:push

Test event

Test connection

Event type: urn:alibaba:idaas:app:event:common:test

Tests the connectivity, signature verification, and encryption capabilities of your configuration.

Note

This event can only be triggered by a one-click test in the console and does not support API calls.

The following example shows the payload after the request parameters are signature-verified:

{
  "iss": "urn:alibaba:idaas:app:event",
  "sub": "idaas_rhhoqmlnyu3cv7ow657gyvurky",
  "aud": "app_mjavzivahje6zxkbc4i2bierdu",
  "exp": 1648711369,
  "iat": 1648709570,
  "jti": "bNRrCYrqXjqe8B1xweqlZw",
  "dataEncrypted": false,
  "cipherData": "",
  "plainData": {
    "instanceId": "idaas_rhhoqmlnyu3cv7ow657gyvurky",
    "aliUid": 151971404963****,
    "eventVersion": "V1.0",
    "eventData": [
      {
        "eventId": "evnt_aaaac766x2somw2ptotoyk6ag6bmfkt5xpqprpq",
        "eventType": "urn:alibaba:idaas:app:event:common:test",
        "eventTime": "1648709509849",
        "bizId": "evnt_aaaac766x2somw2ptotoyk6ag6bmfkt5xpqprpq",
        "bizData": "{\"bizData\":\"req_xxxxxxxxxxsdfsdfsfd\"}"
      }
    ]
  }
}

Your application must return a response after receiving the event. The eventId in the successEvents field must match the eventId from the request. If they do not match, the test fails.

{
  "successEvents": [
    {
      "eventId": "evnt_aaaac766x2somw2ptotoyk6ag6bmfkt5xpqprpq",
      "eventCode": "SUCCESS",
      "eventMessage": "SUCCESS"
    }
  ],
  "skippedEvents": [
    {
      "eventId": "",
      "eventCode": "",
      "eventMessage": ""
    }
  ],
  "failedEvents": [
    {
      "eventId": "",
      "eventCode": "",
      "eventMessage": ""
    }
  ],
  "retriedEvents": [
    {
      "eventId": "",
      "eventCode": "",
      "eventMessage": ""
    }
  ]
}

Address book incremental events

User events

Account creation

Event type: urn:alibaba:idaas:app:event:ud:user:create

Subscribe to this event to handle employee onboarding. IDaaS sends the full account record when a new user is created.

Example bizData:

{
  "password": "ssGp96",
  "userId": "user_4alcbywzc7jyl23lu2srljsw7i",
  "username": "zhangsan",
  "displayName": "Zhang San",
  "passwordSet": true,
  "phoneRegion": "",
  "phoneNumber": "155****5620",
  "phoneVerified": false,
  "email": "zh***@163.com",
  "emailVerified": false,
  "userExternalId": "user_4alcbywzc7jyl23lu2srljsw7i",
  "userSourceType": "build_in",
  "userSourceId": "idaas_rhhoqmlnyu3cv7ow657gyvurky",
  "status": "enabled",
  "accountExpireTime": "-1",
  "registerTime": "1648531553621",
  "lockExpireTime": "-1",
  "createTime": "1648531553621",
  "updateTime": "1648531553621",
  "description": "",
  "customFields": [
    {
      "fieldName": "test_custom_field",
      "fieldValue": "test_value"
    }
  ],
  "primaryOrganizationalUnitId": "ou_bvluxnp2ef36uupdwob6km34a4",
  "organizationalUnits": [
    {
      "organizationalUnitId": "ou_bvluxnp2ef36uupdwob6km34a4",
      "organizationalUnitName": "R&D Department",
      "primary": true
    }
  ]
}

Parameters:

ParameterData typeDescription
userIdStringUnique user ID.
usernameStringUsername.
displayNameStringDisplay name. Usually the user's full name.
passwordSetbooleanSpecifies whether a password is set.
phoneRegionStringArea code for the phone number.
phoneNumberStringPhone number.
phoneVerifiedbooleanSpecifies whether the phone number is verified. Verification is not currently performed.
emailStringEmail address.
emailVerifiedbooleanSpecifies whether the email address is verified. Verification is not currently performed.
userExternalIdStringExternal ID. For a self-built account, this is the same as userId. For an account synchronized from an external source, this is the user ID from that source. For example, if the source is DingTalk, this is the DingTalk userId.
userSourceTypeStringSource type. For a self-built account, the value is build_in.
userSourceIdStringSource type ID.
passwordStringPassword. Included only when password synchronization is enabled for the application and the user has set a password.
statusStringAccount status. enabled indicates the account is enabled. disabled indicates the account is disabled.
accountExpireTimeLongUser expiration time.
registerTimeLongRegistration time.
lockExpireTimeLongLock expiration time. The account is unlocked at this time.
createTimeLongCreation time.
updateTimeLongLast modification time.
descriptionStringDescription.
customFieldsListExtension fields.
-fieldNameStringField name.
-fieldValueStringField value.
primaryOrganizationalUnitIdStringID of the user's primary organizational unit.
organizationalUnitsListAll organizational units the user belongs to.
-organizationalUnitIdStringUnique ID of the organizational unit.
-organizationalUnitNameStringName of the organizational unit.
-primarybooleanSpecifies whether this is the primary organizational unit. true indicates it is the primary organizational unit.

Account deletion

Event type: urn:alibaba:idaas:app:event:ud:user:delete

Subscribe to this event to handle employee offboarding. When an employee leaves and their account is removed from the address book, this event notifies your application.

Example bizData: Same as account creation.

Account basic information update

Event type: urn:alibaba:idaas:app:event:ud:user:update_info

Subscribe to this event to receive notifications when an employee's basic information changes, such as their phone number, email address, or name.

Example bizData: Same as account creation.

Account password update

Event type: urn:alibaba:idaas:app:event:ud:user:update_password

Subscribe to this event to receive the updated password when an account password changes, for example, when an administrator resets it or a user modifies it.

Important

To receive this event, you must also configure the synchronization scope. Otherwise, synchronization will not occur. For more information, see Account Synchronization - Synchronize from IDaaS to Applications.

Example bizData: Same as account creation.

Account enable

Event type: urn:alibaba:idaas:app:event:ud:user:enable

Triggered when an account status changes from disabled to enabled. Subscribe to this event to receive this change notification.

Example bizData: Same as account creation.

Account disable

Event type: urn:alibaba:idaas:app:event:ud:user:disable

Triggered when an account status changes from enabled to disabled. Subscribe to this event to receive this change notification.

Example bizData: Same as account creation.

Account lock

Event type: urn:alibaba:idaas:app:event:ud:user:lock

Triggered when an account is locked, for example, when a user enters an incorrect password multiple times and the account becomes temporarily unavailable. Subscribe to this event to receive this change notification.

Example bizData: Same as account creation.

Account unlock

Event type: urn:alibaba:idaas:app:event:ud:user:unlock

Triggered when an account status changes from locked to normal. Subscribe to this event to receive this change notification.

Example bizData: Same as account creation.

Account shift

Event type: urn:alibaba:idaas:app:event:ud:user:update_primary_ou

Triggered when the primary organizational unit of an account changes. Subscribe to this event to receive this change notification.

Example bizData: Same as account creation.

Organizational unit (OU) events

Organization creation

Event type: urn:alibaba:idaas:app:event:ud:organizational_unit:create

Subscribe to this event to handle organizational unit creation.

Example bizData:

{
  "organizationalUnitId": "ou_dqdvxesykpfhig2kvgrzpeoeyu",
  "organizationalUnitName": "Organization Department",
  "parentId": "ou_dqdvxesykpdfasdfaseoeyu",
  "organizationalUnitExternalId": "ou_dqdvxesykpfhig2kvgrzpeoeyu",
  "organizationalUnitSourceType": "build_in",
  "organizationalUnitSourceId": "idaas_rhhoqmlnyu3cv7ow657gyvurky",
  "createTime": "1648451475209",
  "updateTime": "1648451475209",
  "description": "Self-built"
}

Parameters:

ParameterData typeDescription
organizationalUnitIdStringUnique organization ID.
organizationalUnitNameStringOrganization name.
parentIdStringParent organizational unit ID.
organizationalUnitExternalIdStringExternal ID. For a self-managed organization, this is the same as organizationalUnitId. For an organization synchronized from an external source such as DingTalk, this is the department ID from DingTalk.
organizationalUnitSourceTypeStringSource type.
organizationalUnitSourceIdStringSource type ID.
createTimeLongCreation time.
updateTimeLongLast modification time. Same as lastUpdatedTime.
descriptionStringDescription.

Organization deletion

Event type: urn:alibaba:idaas:app:event:ud:organizational_unit:delete

Subscribe to this event to handle organizational unit deletion.

Example bizData: Same as organization creation.

Organization update

Event type: urn:alibaba:idaas:app:event:ud:organizational_unit:update

Subscribe to this event to handle updates to basic organizational unit information, such as the organization name.

Example bizData: Same as organization creation.

Move organization

Event type: urn:alibaba:idaas:app:event:ud:organizational_unit:update_parent_organizational_unit

Subscribe to this event to handle changes to an organizational unit's parent organization.

Example bizData: Same as organization creation.

Group events

Group creation

Event type: urn:alibaba:idaas:app:event:ud:group:create

Subscribe to this event to handle group creation.

Example bizData:

{
  "groupId": "group_yvx3ugdi3yzaehnsd3uqzb4xha",
  "groupName": "test_2024",
  "groupExternalId": "test_2024"
}

Parameters:

ParameterData typeDescription
groupIdStringUnique group ID.
groupNameStringGroup display name.
groupExternalIdStringGroup external ID.
allMembersListAll current members of the group.
memberIdStringUnique user ID.
memberNameStringUser display name.

Group basic information update

Event type: urn:alibaba:idaas:app:event:ud:group:update

Subscribe to this event to handle updates to basic group information.

Example bizData: Same as group creation.

Group deletion

Event type: urn:alibaba:idaas:app:event:ud:group:delete

Subscribe to this event to handle group deletion.

Example bizData: Same as group creation.

Add member to group

Event type: urn:alibaba:idaas:app:event:ud:group:add_user

Subscribe to this event to handle members being added to a group.

Example bizData:

{
  "addedMembers": [
    {
      "memberId": "user_zakg7oeeaftqqff2bzcv7wpqs4",
      "memberName": "Xiao Ming"
    }
  ],
  "groupId": "group_yvx3ugdi3yzaehnsd3uqzb4xha",
  "groupName": "test_2024_test",
  "groupExternalId": "test_2024"
}

Parameters:

ParameterData typeDescription
groupIdStringUnique group ID.
groupNameStringGroup display name.
groupExternalIdStringGroup external ID.
addedMembersListMembers added to the group.
-memberIdStringUnique user ID.
-memberNameStringUser display name.

Remove member from group

Event type: urn:alibaba:idaas:app:event:ud:group:remove_user

Subscribe to this event to handle members being removed from a group.

Example bizData:

{
  "removedMembers": [
    {
      "memberId": "user_zakg7oeeaftqqff2bzcv7wpqs4",
      "memberName": "Xiao Ming"
    }
  ],
  "groupId": "group_yvx3ugdi3yzaehnsd3uqzb4xha",
  "groupName": "test_2024_test",
  "groupExternalId": "test_2024"
}

Parameters:

ParameterData typeDescription
groupIdStringUnique group ID.
groupNameStringGroup display name.
groupExternalIdStringGroup external ID.
removedMembersListMembers removed from the group.
-memberIdStringUnique user ID.
-memberNameStringUser display name.

Address book full events

Full push events

Full push of organizational units

Event type: urn:alibaba:idaas:app:event:ud:organizational_unit:push

Example bizData: Same as organization creation.

Full push of accounts

Event type: urn:alibaba:idaas:app:event:ud:user:push

Example bizData: Same as account creation.

Full push of groups

Event type: urn:alibaba:idaas:app:event:ud:group:push

Subscribe to this event to handle a full push of groups. The bizData includes all current group members.

Example bizData:

{
  "allMembers": [
    {
      "memberId": "user_zakg7oeeaftqqff2bzcv7wpqs4",
      "memberName": "Xiao Ming"
    },
    {
      "memberId": "user_zakg7oeea1234ff2bzcexample",
      "memberName": "Zhang San"
    }
  ],
  "groupId": "group_yvx3ugdi3yzaehnsd3uqzb4xha",
  "groupName": "test_2024",
  "groupExternalId": "test_2024"
}

Parameters:

ParameterData typeDescription
groupIdStringUnique group ID.
groupNameStringGroup display name.
groupExternalIdStringGroup external ID.
allMembersListAll current members of the group.
-memberIdStringUnique user ID.
-memberNameStringUser display name.