ListUserSerivceGroups
Previews a user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
gemp:ListUserSerivceGroups |
get |
*All Resource
|
None | None |
Request syntax
POST /user/preview/detail HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| userId |
integer |
Yes |
The user ID. |
123 |
| clientToken |
string |
No |
The idempotency token. |
2b63cdef-7ac3-4892-a76d-0f3389ef729f |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response structure. |
||
| requestId |
string |
The request ID. |
2b63cdef-7ac3-4892-a76d-0f3389ef7291 |
| data |
object |
The returned data. |
|
| ramId |
integer |
The RAM user ID. |
321 |
| userId |
integer |
The user ID. |
321 |
| username |
string |
The nickname. |
Mr. Ma |
| phone |
string |
The phone number. |
1390000**** |
|
string |
The email address. |
12121****@163.com |
|
| serviceGroups |
array<object> |
The service groups to which the user belongs. |
|
|
object |
The service group. |
||
| serviceGroupId |
integer |
The service group ID. |
123 |
| serviceGroupName |
string |
The service group name. |
Test group |
| serviceGroupDescription |
string |
The service group description. |
This is a service group description |
Examples
Success response
JSON format
{
"requestId": "2b63cdef-7ac3-4892-a76d-0f3389ef7291",
"data": {
"ramId": 321,
"userId": 321,
"username": "马先生",
"phone": "1390000****",
"email": "12121****@163.com",
"serviceGroups": [
{
"serviceGroupId": 123,
"serviceGroupName": "测试组",
"serviceGroupDescription": "这是一个服务组描述"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | UserTypeNotExisted | The user type does not exist. | User type is not existed |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.