All Products
Search
Document Center

Identity as a Service:Identity as a Service:Error codes

Last Updated:Mar 31, 2026

This page lists the error codes returned when IDaaS Customer Identity and Access Management (CIAM) API calls fail.

OAuth error codes

When an OAuth request fails, the response follows this format:

{
    "error": "invalid_grant",
    "error_description": "Invalid authorization code: 202207211236389yghDWdB",
    "error_uri": "http://xxxxx/api/bff/v1.2/developer/ciam/oauth/token/provider",
    "requestId": "1658384361768$ca725dc4-182f-7562-17d2-53e6acf6a3ac"
}
Error codeDescription
invalid_requestA required parameter is missing, not specified, or in an invalid format.
invalid_clientThe application does not exist or is in an abnormal state.
invalid_grantThe authorization credentials are invalid, expired, or revoked. Alternatively, the redirect URI does not match the one recorded by the authorization server. Credentials include the authorization code, the refresh token, and secrets created by principals.
invalid_scopeThe requested scope is invalid or unknown.
invalid_tokenThe token is invalid.
unauthorized_clientThe client is not authorized to make this request.
unauthorized_userYou do not have permission to access this resource.
unsupported_grant_typeThe authorization server does not support this grant type.
unsupported_response_typeThe authorization server does not support this response type.
access_deniedThe authorization server rejected the request. The token may be invalid.
redirect_uri_mismatchThe redirect_uri value is invalid.
login_failedThe user ID or password is invalid.
user_deletedThe user is invalid.
server_errorAn internal error occurred on the authorization server.

CIAM error codes

When a CIAM API request fails, the response follows this format:

{
    "success": false,
    "code": "Operation.Failure",
    "message": "Operation.Failure.Mini.Program.Silent.Login",
    "requestId": "1656572265429$49b433a9-219a-910a-0323-2af4f1f1a9ce",
    "data": null
}

The code field identifies the exception type. The message field identifies the specific details of the exception.

Error codes

An error code identifies the type of exception.
Error codeDescription
Service.Internal.ErrorAn internal error occurred in the CIAM service.
Operation.SuccessThe operation succeeded.
Operation.FailureThe operation failed.
Resource.NotFoundThe resource does not exist.
Params.BlankA required parameter is not specified.
Params.IllegalA parameter is invalid.
Operation.DeniedYou do not have permission to perform this operation, or you have not completed real-name verification.
Remote.ErrorAn exception occurred when calling a third-party service.
Social.Login.ErrorAn exception occurred during social logon.
Unsupported.Media.TypeThe media type is invalid for the request method (POST, GET, PUT, or DELETE).

Error messages

An error message identifies the specific details of the exception.

Common errors

Error messageDescription
Server.Access.Denied.Token.ExpireAccess denied. The token has expired.
Operation.Failure.RemoteServerCommonErrorThe operation failed. A dependent service returned an error.
Operation.Failure.ResourceAlreadyExistThe operation failed. The resource already exists.
Operation.Failure.UnknownErrorThe operation failed. An unknown error occurred.
Operation.Failure.UnsupportedThe operation is not supported.
Operation.Failure.ServerIntener.ErrorThe operation failed. An internal error occurred.
Operation.Failure.Service.Internal.ErrorAn internal error occurred.
Server.Access.DeniedAccess denied. The user does not have permission.
Operation.Failure.IP.Access.InvalidThe IP address is unreachable.

Service errors

Error messageDescription
Operation.Failure.AuthenticateInformation.DisableThe authentication source is disabled.
Operation.Failure.AuthenticateInformation.Not.FoundThe authentication source does not exist.
Operation.Failure.Captcha.ErrorThe CAPTCHA code is invalid.
Operation.Failure.Captcha.InvalidThe CAPTCHA code is invalid or does not exist.
Operation.Failure.Change.User.TypeFailed to change the user type.
Operation.Failure.Email.Code.ErrorThe SMS or email verification code is invalid.
Operation.Failure.Email.Code.Not.FindThe SMS or email verification code was not found. Resend the verification code.
Operation.Failure.Email.Code.Too.FrequencyToo many verification attempts. Resend the verification code.
Operation.Failure.Email.Not.ExistTwo-factor authentication failed. The specified email address does not exist.
Operation.Failure.Email.Not.SameThe submitted email address does not match the address used to send the verification code.
Operation.Failure.FId.Not.FoundThe file ID is invalid or the process has expired.
Operation.Failure.File.Size.Exceeds.LimitThe uploaded file exceeds the size limit.
Operation.Failure.Gesture.ErrorThe gesture trajectory is invalid.
Operation.Failure.Gesture.Sign.ErrorThe gesture trajectory is invalid.
Operation.Failure.Invalid.AccessTokenThe access token is invalid.
Operation.Failure.Invalid.Id_TokenThe ID token is invalid.
Operation.Failure.Mini.Program.PhoneThe mobile phone number for WeChat mini program logon could not be retrieved. The EncryptedData parameter is missing or invalid.
Operation.Failure.Mini.Program.Silent.LoginSilent logon to the WeChat mini program failed.
Operation.Failure.Mini.Program.UserinfoWeChat mini program user information could not be retrieved. The EncryptedData parameter is missing or invalid.
Operation.Failure.Oauth.Client.Not.AvailableThe client ID is invalid or the application is unavailable.
Operation.Failure.Password.Has.InitializedThe password has already been initialized and cannot be re-initialized.
Operation.Failure.PhoneNumber.Not.SameThe submitted mobile phone number does not match the number used to send the verification code.
Operation.Failure.Public.Key.Not.ExistThe public key for the ID token does not exist.
Operation.Failure.Send.Email.FailFailed to send the email.
Operation.Failure.Send.Email.Too.FrequencyToo many email send attempts.
Operation.Failure.Send.SMS.FailFailed to send the SMS message.
Operation.Failure.Send.SMS.Too.FrequencyToo many SMS send attempts.
Operation.Failure.SMS.Code.ErrorThe SMS or email verification code is invalid. Re-enter the verification code.
Operation.Failure.SMS.Code.Not.FindThe SMS or email verification code was not found. Resend the verification code.
Operation.Failure.SMS.Code.Too.FrequencyToo many verification attempts. Resend the verification code.
Operation.Failure.Social.Code.ExpiredSocial logon failed. The third-party code is invalid.
Operation.Failure.Social.LoginSocial logon failed.
Operation.Failure.Social.User.Auth.ErrorFailed to authorize the third-party user.
Operation.Failure.Social.User.Not.BindNo binding relationship exists for this social logon.
Operation.Failure.SSO.Cannot.Get.CodeFailed to retrieve the single sign-on (SSO) code.
Operation.Failure.Unsupported.2fa.TypeThis two-factor authentication (2FA) operation is not supported.
Operation.Failure.Unsupported.Dict.InUseExtended attributes are in use and cannot be modified or deleted.
Operation.Failure.Unsupported.File.TypeThe uploaded file type is not supported.
Operation.Failure.Unsupported.Ignore.CompleteThe account completion flow cannot be skipped.
Operation.Failure.Unsupported.Social.PlatformThis third-party social platform is not supported.
Operation.Failure.Unsupported.UserType.InUseThe user type is in use and cannot be modified or deleted.
Operation.Failure.Update.Device.StatusFailed to update the device status.
Operation.Failure.User.ArchivedThe user is deleted.
Operation.Failure.User.DisabledThe user is disabled.
Operation.Failure.User.Email.Equal.OriginalThe new email address is the same as the current email address.
Operation.Failure.User.LockedThe user is locked.
Operation.Failure.User.Locked.And.Password.ErrorThe account is locked due to too many failed password attempts.
Operation.Failure.User.Not.Bind.GestureNo gesture is bound to this account.
Operation.Failure.User.Not.ExistThe user does not exist.
Operation.Failure.User.Password.ErrorThe password is incorrect.
Operation.Failure.User.PhoneNumber.Equal.OriginalThe new mobile phone number is the same as the current mobile phone number.
Operation.Failure.Username.Or.Password.ErrorThe account or password is invalid.
Operation.Params.Illegal.DeviceIdThe device ID does not exist.

Missing parameter errors

Error messageDescription
Params.Blank.ApplicationExternalIdSecurity authentication failed. The external ID is not specified.
Params.Blank.Authentication.IdThe authentication source ID is not specified.
Params.Blank.CaptchaCodeThe CAPTCHA UUID is not specified.
Params.Blank.CaptchaTextThe CAPTCHA code is not specified.
Params.Blank.CodeThe verification code is not specified.
Params.Blank.Device.DeviceIdThe device ID is not specified.
Params.Blank.Dictionary.UuidThe extension field UUID is not specified.
Params.Blank.Dictionary.Value.UuidThe extension field value UUID is not specified.
Params.Blank.FIdThe file ID is not specified.
Params.Blank.Gesture.SignGesture logon failed. The gesture code is not specified.
Params.Blank.Idaas.AppIdThe IDaaS application ID is not specified.
Params.Blank.Id_TokenThe ID token is not specified.
Params.Blank.Mini.Program.LoginCodeThe WeChat mini program temporary logon code is not specified.
Params.Blank.Mini.Program.PhoneThe SSO parameter phoneNumberCode, phoneNumberEncryptedData, or phoneNumberIv for the WeChat mini program is not specified.
Params.Blank.Mini.Program.UserinfoThe EncryptedData or Iv parameter for WeChat mini program logon is not specified.
Params.Blank.MobileExtendParamsJsonA required biometric authentication parameter is not specified.
Params.Blank.MobileExtendParamsJsonSignA required biometric authentication parameter is not specified.
Params.Blank.Social.Callback.CodeThe code returned by the third-party provider is not specified for social logon.
Params.Blank.TypeThe type is required when sending a verification code. Valid values: SMS, EMAIL.
Params.Blank.Upload.FileThe file is empty or the file name is not specified.
Params.Blank.User.AddressA detailed address is required.
Params.Blank.User.BirthdayBirthday is required.
Params.Blank.User.CityCity is required.
Params.Blank.User.CountryCountry is required.
Params.Blank.User.DisplayNameA display name is required.
Params.Blank.User.EmailAn email address is required.
Params.Blank.User.EnDisplayNameAn English display name is required.
Params.Blank.User.Extension.AttrValueA value for the extended attribute is required.
Params.Blank.User.ExternalIdAn external ID is required.
Params.Blank.User.GenderGender is required.
Params.Blank.User.PasswordA password is required.
Params.Blank.User.Phone.NumberA mobile phone number is required.
Params.Blank.User.ProvinceProvince is required.
Params.Blank.User.RegionRegion is required.
Params.Blank.User.StreetStreet information is required.
Params.Blank.User.UsernameA username is required.
Params.Blank.User.UuidThe user UUID is required.
Params.Blank.UserType.CodeThe user type code is required.
Params.Blank.UserType.NameThe user type name is required.
Params.Blank.UserType.UuidThe user type UUID is required.
Params.Blank.OauthClient.Client_IdThe client ID is not specified.
Params.Blank.OauthClient.Grant_TypeGrant_Type is not specified.
Params.Blank.OauthClient.Grant_SecretThe client secret is not specified.
Params.Blank.AuthenticateInformation.EnterpriseAuthIdThe authentication source ID is not specified.

Duplicate resource errors

Error messageDescription
Params.Exist.SocialUser.SocialIdThe social ID already exists.
Params.Exist.User.EmailThe email address already exists.
Params.Exist.User.ExternalIdThe external ID already exists.
Params.Exist.User.Phone.NumberThe mobile phone number already exists.
Params.Exist.User.UsernameThe username already exists.
Params.Exist.UserTypeThe user type already exists.
Params.Exist.UserType.CodeThe user type code already exists.
Params.Exist.UserType.NameThe user type name already exists.

Invalid parameter errors

Error messageDescription
Params.Illegal.ConsentA required consent for logon has not been agreed to.
Params.Illegal.Dictionary.UuidThe extended field UUID is invalid.
Params.Illegal.Dictionary.ValueThe extended field value is invalid.
Params.Illegal.Dictionary.Value.UuidThe extended field value UUID is invalid.
Params.Illegal.Group.ExternalIdThe group external ID is invalid.
Params.Illegal.Group.NameThe group name is invalid.
Params.Illegal.Group.UuidThe group UUID is invalid.
Params.Illegal.TypeThe type value is not supported for sending verification codes.
Params.Illegal.User.DisplayNameThe display name is invalid.
Params.Illegal.User.EmailThe email address is invalid.
Params.Illegal.User.Extension.AttrValueThe extended attribute value is outside the allowed range.
Params.Illegal.User.PasswordThe password does not meet the password policy requirements.
Params.Illegal.User.Password.PolicyThe password does not meet the password policy requirements.
Params.Illegal.User.Password.Same.OldThe new password is the same as the current password.
Params.Illegal.User.Phone.NumberThe mobile phone number already exists.
Params.Illegal.User.UsernameThe username already exists.
Params.Illegal.User.Username.PolicyThe username does not meet the naming policy requirements.
Params.Illegal.User.UserTypeThe user type does not exist when querying by user type.
Params.Illegal.User.UuidThe user UUID is invalid.
Params.Illegal.Username.Equal.PhoneA username cannot be a mobile phone number.
Params.Illegal.OauthClient.Client_IdThe client ID is invalid.
Params.Illegal.OauthClient.Client_SecretThe client secret is invalid.
Params.Illegal.OauthClient.Grant_TypeThe Grant_Type value is invalid.
Params.Illegal.AuthenticateInformation.EnterpriseAuthIdThe authentication source ID is invalid.