All Products
Search
Document Center

Identity as a Service:API operations for application development

Last Updated:Mar 31, 2026

Identity as a Service (IDaaS) provides APIs to manage accounts and organizational units in your applications. Use these APIs to:

  • Create, update, and delete user accounts

  • Enable or disable accounts

  • Query account details and password policies

  • Create and manage organizational units

  • Retrieve the synchronization scope to identify which accounts and organizational units are manageable

All API calls except token generation require an access token. The synchronization scope determines which accounts and organizational units your application can act on.

Authentication

Get an access token

Get the client_id and client_secret from the General tab of your application's details page, then call GenerateToken. See General configurations for instructions on finding these credentials.

IDaaS Developer API authentication uses application secrets in IDaaS — not Resource Access Management (RAM). Grant API permissions on the IDaaS API tab of your application, not through RAM policies.

Configure permissions

Each API category requires a specific permission value, set on the IDaaS API tab. Grant only the permissions your application needs:

Permission valueOperations granted
urn:alibaba:idaas:scope:user:manager_allCreate, update, delete, enable, and disable accounts (CreateUser, PatchUser, DeleteUser, EnableUser, DisableUser)
urn:alibaba:idaas:scope:user:read_allQuery account details, list accounts, and retrieve password policies (GetUser, ListUsers, GetUserPasswordPolicy)
urn:alibaba:idaas:scope:organizational_unit:manager_allCreate, update, and delete organizational units (CreateOrganizationalUnit, PatchOrganizationalUnit, DeleteOrganizationalUnit)
urn:alibaba:idaas:scope:organizational_unit:read_allQuery organizational unit details and list organizational units (GetOrganizationalUnit, ListOrganizationalUnits, ListOrganizationalUnitParentIds)

Token generation and synchronization scope queries do not require a permission value.

SDK and tools

IDaaS supports SDKs for Java, Python, Go, PHP, C#, C++, and TypeScript through Alibaba Cloud OpenAPI Explorer.

On OpenAPI Explorer:

a

To download a complete project with SDK installation and sample calls, click Download Project on the API Debugging page.

a

To call API operations directly without an SDK, use any HTTP development or testing tool. See Alibaba Cloud IDaaS API operations for the full list.

API operations

The following table lists the available API operations. For full parameter details, see the API reference.

CategoryOperationAPI nameRequired permission
TokenGet an access tokenGenerateToken
AccountCreate an accountCreateUserurn:alibaba:idaas:scope:user:manager_all
Update an accountPatchUserurn:alibaba:idaas:scope:user:manager_all
Delete an accountDeleteUserurn:alibaba:idaas:scope:user:manager_all
Enable an accountEnableUserurn:alibaba:idaas:scope:user:manager_all
Disable an accountDisableUserurn:alibaba:idaas:scope:user:manager_all
Get account detailsGetUserurn:alibaba:idaas:scope:user:read_all
List accountsListUsersurn:alibaba:idaas:scope:user:read_all
Get the password policyGetUserPasswordPolicyurn:alibaba:idaas:scope:user:read_all
Organizational unitCreate an organizational unitCreateOrganizationalUniturn:alibaba:idaas:scope:organizational_unit:manager_all
Update an organizational unitPatchOrganizationalUniturn:alibaba:idaas:scope:organizational_unit:manager_all
Delete an organizational unitDeleteOrganizationalUniturn:alibaba:idaas:scope:organizational_unit:manager_all
Get organizational unit detailsGetOrganizationalUniturn:alibaba:idaas:scope:organizational_unit:read_all
List organizational unitsListOrganizationalUnitsurn:alibaba:idaas:scope:organizational_unit:read_all
List parent IDs of an organizational unitListOrganizationalUnitParentIdsurn:alibaba:idaas:scope:organizational_unit:read_all
Synchronization scopeGet the synchronization scopeGetApplicationProvisioningScope