Group management API - GET all groups
Lists all user groups of your Dynatrace account.
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 |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | GroupListDto | Success. The response contains the list of user groups. |
Response body objects
The GroupListDto
object
Element | Type | Description |
---|---|---|
count | number | The number of entries in the list. |
items | GetGroupDto[] | - |
The GetGroupDto
object
Element | Type | Description |
---|---|---|
uuid | string | The UUID of the user group. |
name | string | The name of the user group. |
description | string | A short description of the user group. |
federatedAttributeValues | string[] | A list of values associating this group with the corresponding claim from an identity provider. |
owner | string | The identity provider from which the group originates.
|
createdAt | string | The date and time of the group creation in |
updatedAt | string | The date and time of the most recent group modification in |
Response body JSON model
1{2 "count": 1,3 "items": [4 {5 "uuid": "string",6 "name": "string",7 "description": "string",8 "federatedAttributeValues": [9 "string"10 ],11 "owner": "LOCAL",12 "createdAt": "string",13 "updatedAt": "string"14 }15 ]16}
Example
In this example, the request lists all user groups of the of the 2b794097-8ad2-4b32-b923-0131da2eeddf account. 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' \3 --header 'Authorization: Bearer abcdefjhij1234567890'
Request URL
1https://api.dynatrace.com/iam/v1/accounts/9ad20784-76c6-4167-bfba-9b0d8d72a71d/groups
Response body
1{2 "count": 14,3 "items": [4 {5 "uuid": "7a1d224d-0ebc-4318-ab1e-64b217b7c156",6 "name": "Monitoring viewer",7 "owner": "LOCAL",8 "description": null,9 "hidden": false,10 "createdAt": "2020-03-11T03:01:00Z",11 "updatedAt": "2020-03-11T03:01:00Z"12 },13 {14 "uuid": "f335c6ae-f046-48ad-a0a2-49bb8fdca07b",15 "name": "Monitoring admin",16 "owner": "LOCAL",17 "description": null,18 "hidden": false,19 "createdAt": "2020-03-11T03:01:00Z",20 "updatedAt": "2020-03-11T03:01:00Z"21 },22 {23 "uuid": "56d56aba-c12f-44c1-a0ba-42eba3e3ff84",24 "name": "Account manager",25 "owner": "LOCAL",26 "description": null,27 "hidden": false,28 "createdAt": "2020-03-11T03:01:00Z",29 "updatedAt": "2020-03-11T03:01:00Z"30 }31 ]32}
Response code
200