Management APIs

Updated at:

Management APIs are called by user management systems of business applications to handle account information maintenance and lifecycle management. All Management APIs are protected by the management application access token.

Overview

MethodEndpointDescription
GET/api/bff/v1.2/developer/ciam/management/token/checkVerifies whether a server-side access token is valid
GET/api/bff/v1.2/developer/ciam/management/userRetrieves the details of a user by UUID
GET/api/bff/v1.2/developer/ciam/management/social/userinfoRetrieves user details by social account identifier
POST/api/bff/v1.2/developer/ciam/management/userCreates a new user
POST/api/bff/v1.2/developer/ciam/management/user/enableEnables a user account
POST/api/bff/v1.2/developer/ciam/management/user/disableDisables a user account
POST/api/bff/v1.2/developer/ciam/management/user/unlockUnlocks a locked user account
GET/api/bff/v1.2/developer/ciam/management/token/wechat_micro_programRetrieves the cached WeChat mini program access token

Token validity verification

Verifies whether a server-side access token is valid. Call this API from your application server to check token status before performing protected operations.

Request

GET /api/bff/v1.2/developer/ciam/management/token/check

No request parameters.

Response — valid token

ParameterTypeExampleDescription
successbooleantrueSpecifies whether the request succeeded.
codestringOperation.SuccessThe result code.
messagestringnullAdditional information.
requestIdstring8D5CDDCF-C77A-4A0A-A8A6-16314E57847FThe request ID.
dataJSONnullThe response payload.

Response — invalid token

ParameterTypeExampleDescription
errorstringinvalid_tokenThe error type.
error_descriptionstringInvalid access token: eyJhbGciOiJIU...WJferRYl0A description of the error.

Get user information

Retrieves the basic profile of a user by their unique identifier.

Request

GET /api/bff/v1.2/developer/ciam/management/user

Request parameters

ParameterTypeRequiredDescription
userUuidstringYesThe unique identifier of the user.
userTypestringNoThe user type. Defaults to regular user.

Response elements

ParameterTypeDescription
userIdstringThe unique identifier of the user.
displayNamestringThe display name.
usernamestringThe username.
phoneNumberstringThe phone number.
phoneRegionstringThe phone area code.
emailstringThe email address.
dataDictionariesarrayCustom user attributes stored in IDaaS data dictionaries. Data dictionaries let administrators define and store custom account properties beyond the standard fields.
remarkstringThe user source.
uamParamsmapAdditional UAM parameters.
lockedbooleanSpecifies whether the user account is locked.
enabledbooleanSpecifies whether the user account is enabled.
createTimedateThe time when the user registered.
sourceApplicationUuidstringThe ID of the application through which the user registered.

Get user information by social account ID

Retrieves user details by the user's unique identifier on a social platform. Use this API when you have a social login identifier and need to look up the corresponding IDaaS user.

Request

GET /api/bff/v1.2/developer/ciam/management/social/userinfo

Request parameters

ParameterTypeRequiredDescription
socialUserIdstringYesThe user's unique identifier on the social platform.
socialIdstringYesThe social platform type, as defined by IDaaS.

Response elements

ParameterTypeDescription
userUuidstringThe unique identifier of the user in IDaaS.
displayNamestringThe display name.
usernamestringThe username.
phoneNumberstringThe phone number.
phoneRegionstringThe phone area code.
emailstringThe email address.
dataDictionariesarrayCustom user attributes stored in IDaaS data dictionaries. Data dictionaries let administrators define and store custom account properties beyond the standard fields.
remarkstringThe user source.
uamParamsmapAdditional UAM parameters.
lockedbooleanSpecifies whether the user account is locked.
enabledbooleanSpecifies whether the user account is enabled.
createTimedateThe time when the user registered.
sourceApplicationUuidstringThe ID of the application through which the user registered.

Add user

Creates a new user in IDaaS.

Request

POST /api/bff/v1.2/developer/ciam/management/user

Request parameters

ParameterTypeRequiredDescription
usernamestringYesThe username.
passwordstringYesThe password.
phoneNumberstringYesThe phone number.
phoneRegionstringNoThe phone area code.
emailstringNoThe email address.
userTypestringNoThe user type.
externalIdstringNoThe external ID for mapping to a record in your system.
dataDictionariesarrayNoCustom attribute values to store with this user. Each entry must include dictionaryCode (the attribute key) and value.

Sample request

{
  "username": "pftest125",
  "password": "Test123456",
  "phoneNumber": "178****1215",
  "email": "855******@qq.com",
  "externalId": "125",
  "dataDictionaries": [
    {
      "dictionaryCode": "languages",
      "value": "en"
    },
    {
      "dictionaryCode": "sex",
      "value": "male"
    }
  ]
}

Response elements

ParameterTypeExampleDescription
userUuidstring65********93926885The unique identifier assigned to the new user in IDaaS.

Sample response

{
    "success": true,
    "code": "Operation.Success",
    "message": "Operation.Success",
    "requestId": "1668062119444$c91e1df2-2450-c0ab-876c-dce7356fbc43",
    "data": {
        "userUuid": "65********93926885"
    }
}

Enable user

Enables a user account so the user can log on and use the system normally.

Request

POST /api/bff/v1.2/developer/ciam/management/user/enable
Content-Type: application/json

Request parameters

ParameterTypeRequiredDescription
userUuidstringYesThe unique identifier of the user.
userTypestringNoThe user type.

Response elements

ParameterTypeExampleDescription
successbooleantrueSpecifies whether the operation succeeded.
codestringOperation.SuccessThe result code.
messagestringnullAdditional information.
requestIdstring8D5CDDCF-C77A-4A0A-A8A6-16314E57847FThe request ID.
dataJSONnullThe response payload.

Error codes

Error codeDescription
Operation.SuccessThe user was enabled successfully.
Operation.Failure.User.EnabledThe operation failed because the user is already enabled.

Disable user

Disables a user account. A disabled account cannot perform any operations or log on.

Request

POST /api/bff/v1.2/developer/ciam/management/user/disable
Content-Type: application/json

Request parameters

ParameterTypeRequiredDescription
userUuidstringYesThe unique identifier of the user.
userTypestringNoThe user type.

Response elements

ParameterTypeExampleDescription
successbooleantrueSpecifies whether the operation succeeded.
codestringOperation.SuccessThe result code.
messagestringnullAdditional information.
requestIdstring8D5CDDCF-C77A-4A0A-A8A6-16314E57847FThe request ID.
dataJSONnullThe response payload.

Error codes

Error codeDescription
Operation.SuccessThe user was disabled successfully.
Operation.Failure.User.EnabledThe disable operation failed.

Unlock user

Unlocks a user account that was automatically locked after exceeding the failed log on attempt limit set by risk governance. Use this API to proactively restore access for a locked user.

Request

POST /api/bff/v1.2/developer/ciam/management/user/unlock
Content-Type: application/json

Request parameters

ParameterTypeRequiredDescription
userUuidstringYesThe unique identifier of the user.
userTypestringNoThe user type. Defaults to regular user.

Response elements

ParameterTypeExampleDescription
successbooleantrueSpecifies whether the operation succeeded.
codestringOperation.SuccessThe result code.
messagestringnullAdditional information.
requestIdstring8D5CDDCF-C77A-4A0A-A8A6-16314E57847FThe request ID.
dataJSONnullThe response payload.

Error codes

Error codeDescription
Operation.SuccessThe user was unlocked successfully.
Operation.Failure.User.EnabledThe unlock operation failed.

Get WeChat mini program token

Retrieves the cached WeChat mini program access token managed by IDaaS.

WeChat mini program access tokens are application-scoped: obtaining a new token from WeChat invalidates the previous token for all applications sharing that mini program. IDaaS maintains a cached token on behalf of your application and automatically refreshes it from WeChat when the cache expires, preventing token conflicts across integrations.

Request

GET /api/bff/v1.2/developer/ciam/management/token/wechat_micro_program

Request parameters

ParameterTypeRequiredDescription
enterpriseAuthIdstringYesThe ID of the enterprise authentication source corresponding to the WeChat mini program.

Response elements

ParameterTypeExampleDescription
access_tokenstringC77A-4A0A-A8A6-16314E57847FThe WeChat mini program access token.
expires_innumber3600The validity period of the token in seconds. Does not exceed 7200.
errcodenumber1The WeChat error code.
errmsgstringnullThe WeChat error message.