You can call this operation to set the single sign-on (SSO) status of Active Directory (AD) directories.


This operation is supported only on AD directories, not on RAM directories.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SetDirectorySsoStatus

The operation that you want to perform. Set the value to SetDirectorySsoStatus.

EnableSso Boolean Yes true

Specifies whether to enable SSO. Valid values:

  • true: enables SSO.
  • false: disables SSO.
DirectoryId String Yes cn-hangzhou+dir-h95efs1mbukd9****

The ID of the AD directory.

RegionId String Yes cn-hangzhou

The region ID of the AD directory.

Response parameters

Parameter Type Example Description
RequestId String AF5539DC-F0CE-4F04-A8BC-50B65F86FE61

The ID of the request.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

  "RequestId": "AF5539DC-F0CE-4F04-A8BC-50B65F86FE61"

Error codes

For a list of error codes, visit the API Error Center.