AddUserToGroup
Adds a user to a user group.
Operation description
When SCIM synchronization is enabled, you cannot add users to SCIM-synchronized user groups.
This topic provides an example of adding the user u-00q8wbq42wiltcrk**** to the user group g-00jqzghi2n3o5hkh****.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:AddUserToGroup |
create |
*User
*Group
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
Yes |
The ID of the user group. |
g-00jqzghi2n3o5hkh**** |
| UserId |
string |
Yes |
The ID of the user. |
u-00q8wbq42wiltcrk**** |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The ID of the request. |
F76AF4FC-25E4-5CF1-B7CB-74F3CB72F0F0 |
Examples
Success response
JSON format
{
"RequestId": "F76AF4FC-25E4-5CF1-B7CB-74F3CB72F0F0"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.