Add User to User Group¶
Add users to a user group.
Operation Permissions¶
Applications assigned with the administrator policy in the OU.
Request Format¶
POST https://{apigw-address}/enos-iam-service/v2.3/usergroup/append
Request Parameters (URI)¶
Name |
Location (Path/Query) |
Required/Optional |
Data Type |
Description |
---|---|---|---|---|
orgId |
Query |
Required |
String |
The ID of the OU to which the user group belongs to. How to get orgId>> |
Request Parameters (Body)¶
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
user |
Required |
UserListAdd Struct |
The list of users to add. For more information, see UserListAdd Struct. |
userGroup |
Required |
UserGroupListAdd Struct |
The user group to add isers to. For more information, see UserGroupListAdd Struct. |
UserListAdd Struct ¶
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
add |
Required |
String Array |
The list of user IDs. |
UserGroupListAdd Struct ¶
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
id |
Required |
String |
The user group ID. |
Samples¶
Request Sample¶
url: https://{apigw-address}/enos-iam-service/v2.3/usergroup/append?orgId=yourOrgId
method: POST
request Body:
{
"user": {
"add": [
"userId"
]
},
"userGroup": {
"id": "userGroupId"
}
}
Return Sample¶
{
"fail": false,
"data": true,
"success": true,
"status": 0
}