Listing users in a group
GET /v3/groups/{group_id}/users
List users that belong to a group.
Request
Parameters
| Name | In | Type | Description |
|---|---|---|---|
group_id
|
path | string | The group ID. |
Example
# curl -ks -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \ https://<node_IP_addr>:5000/v3/groups/c0d675eac29945ad9dfd08aa1bb75751/users
Response
Parameters
| Name | In | Type | Description |
|---|---|---|---|
users
|
body | array | A list of user objects. |
default_project_id (Optional) |
body | string |
The ID of the default project for the user. |
domain_id
|
body | string | The ID of the domain. |
enabled
|
body | boolean | If the user is enabled, this value is true.
If the user is disabled, this value is false. |
id
|
body | string | The user ID. |
links
|
body | object | The links for the user resource. |
name
|
body | string | The user name. Must be unique within the owning domain. |
password_expires_at
|
body | string |
The date and time when the password expires. The time zone is UTC. This is a response object attribute; not valid for requests.
A New in version 3.7 |
Status codes
Success
| Code | Reason |
|---|---|
200 - OK
|
Request was successful. |
Example
{
"users": [
{
"domain_id": "f2eeaaf15c254d4fa10255796122c8ec",
"enabled": true,
"id": "ebb3fe534b6443acb8d4e7bb1aa28489",
"links": {
"self": "https://<node_IP_addr>:5000/v3/users/ebb3fe534b6443acb8d4e7bb1aa28489"
},
"name": "myuser",
"options": {}
}
],
"links": {
"next": null,
"self": "https://<node_IP_addr>:5000/v3/groups/c0d675eac29945ad9dfd08aa1bb75751/users",
"previous": null
}
}