ListUserGroupsForRegistrationPolicy
Lists the user groups associated with device registration policies in your Alibaba Cloud account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
csas:ListUserGroupsForRegistrationPolicy |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyIds |
array |
Yes |
A collection of device registration policy IDs. You can specify up to 100 IDs. |
|
|
string |
No |
A device registration policy ID. Get this value from one of the following operations:
|
reg-policy-63b2f1844b86**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response schema |
||
| RequestId |
string |
The ID of this request. |
D89009C7-54C6-51B6-BAE7-3F373920C6BF |
| Policies |
array<object> |
A list of device registration policies. |
|
|
array<object> |
A device registration policy. |
||
| PolicyId |
string |
The ID of the device registration policy. |
reg-policy-f25c9e5872e5**** |
| UserGroups |
array<object> |
A collection of user groups associated with the device registration policy. |
|
|
array<object> |
A user group associated with the device registration policy. |
||
| UserGroupId |
string |
The ID of the user group. |
usergroup-6f1ef2fc56b6**** |
| Name |
string |
The name of the user group. |
user_group_name |
| Description |
string |
A description of the user group. |
这是一条被设备注册策略引用的用户组。 |
| CreateTime |
string |
The time when the user group was created. |
2022-09-27 18:10:25 |
| Attributes |
array<object> |
A collection of user group attributes. |
|
|
object |
A user group attribute. |
||
| UserGroupType |
string |
The type of the user group. Valid values:
Valid values:
|
department |
| Relation |
string |
The relation for the user group. Valid values:
Valid values:
|
Equal |
| Value |
string |
The value of the user group attribute.
|
OU=部门1,OU=SASE钉钉 |
| IdpId |
integer |
The identity provider ID for the user group. This field appears only when UserGroupType is department. |
12 |
Examples
Success response
JSON format
{
"RequestId": "D89009C7-54C6-51B6-BAE7-3F373920C6BF",
"Policies": [
{
"PolicyId": "reg-policy-f25c9e5872e5****",
"UserGroups": [
{
"UserGroupId": "usergroup-6f1ef2fc56b6****",
"Name": "user_group_name",
"Description": "这是一条被设备注册策略引用的用户组。",
"CreateTime": "2022-09-27 18:10:25",
"Attributes": [
{
"UserGroupType": "department",
"Relation": "Equal",
"Value": "OU=部门1,OU=SASE钉钉",
"IdpId": 12
}
]
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.