Group management API - GET group members
Lists all members of a user group.
The request produces an application/json
payload.
GET |
|
Authentication
To execute this request, you need the Allow read access for identity resources (users and groups) (account-idm-read
) scope assigned to your token. To learn how to obtain and use it, see Authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
accountUuid | string | The ID of the required account. You can find the UUID on the Account > Account management API page, during creation of an OAuth client. | path | required |
groupUuid | string | The UUID of the required user group. | path | required |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | GroupUserListDto | Success. The response contains members of the group. |
Response body objects
The GroupUserListDto
object
Element | Type | Description |
---|---|---|
count | number | The number of entries in the list. |
items | UserDto[] | - |
The UserDto
object
Element | Type | Description |
---|---|---|
uid | string | The UUID of the user. |
string | The email address of the user. | |
name | string | The first name of the user. |
surname | string | The last name of the user. |
userStatus | string | The status of this user in Dynatrace:
|
emergencyContact | boolean | The user is ( |
Response body JSON model
1{2 "count": 1,3 "items": [4 {5 "uid": "string",6 "email": "string",7 "name": "string",8 "surname": "string",9 "userStatus": "ACTIVE",10 "emergencyContact": true11 }12 ]13}
Example
In this example, the request lists the members of the user group with the UUID of 7a1d224d-0ebc-4318-ab1e-64b217b7c156. The example result is truncated to three entries.
Curl
1curl --request GET \2 --url 'https://api.dynatrace.com/iam/v1/accounts/9ad20784-76c6-4167-bfba-9b0d8d72a71d/groups/7a1d224d-0ebc-4318-ab1e-64b217b7c156/users' \3 --header 'Authorization: Bearer abcdefjhij1234567890'
Request URL
1https://api.dynatrace.com/iam/v1/accounts/9ad20784-76c6-4167-bfba-9b0d8d72a71d/groups/7a1d224d-0ebc-4318-ab1e-64b217b7c156/users
Response body
1{2 "count": 10,3 "items": [4 {5 "uid": "20cc1c46-870e-48ca-ac40-9a8459cf6632",6 "email": "Jane.brown@company.com",7 "name": "Jane",8 "surname": "Brown",9 "emergencyContact": false,10 "userStatus": "ACTIVE"11 },12 {13 "uid": "08dfae05-3bb9-4389-8c34-2ac0020c08b1",14 "email": "john.smith@company.com",15 "name": "John",16 "surname": "Smith",17 "emergencyContact": true,18 "userStatus": "ACTIVE"19 },20 {21 "uid": "d48faa11-a488-47c4-b56d-c7acd0e76ea1",22 "email": "james.johnson@company.com",23 "name": "James",24 "surname": "Johnson",25 "emergencyContact": false,26 "userStatus": "ACTIVE"27 }28 ]29}
Response code
200