Group management API - POST a new group
Creates a new user group in your Dynatrace account.
The request consumes and produces an application/json
payload.
POST |
|
Authentication
To execute this request, you need the Allow write access for identity resources (users and groups) (account-idm-write
) 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 |
body | PutGroupDto[] | The body of the request. Contains a list of configurations for new groups. Do not specify a UUID. A UUID is assigned automatically by Dynatrace. | body | required |
Request body objects
The RequestBody
object
The PutGroupDto
object
Element | Type | Description | Required |
---|---|---|---|
uuid | string | The UUID of the user group. | optional |
name | string | The name of the user group. | required |
description | string | A short description of the user group. | optional |
federatedAttributeValues | string[] | A list of values associating this group with the corresponding claim from an identity provider. | optional |
Request body JSON model
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
1[2 {3 "uuid": "string",4 "name": "string",5 "description": "string",6 "federatedAttributeValues": [7 "string"8 ]9 }10]
Response
Response codes
Code | Type | Description |
---|---|---|
201 | GetGroupDto[] | Success. The response contains descriptions of newly created groups. |
Response body objects
The ResponseBody
object
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 {3 "uuid": "string",4 "name": "string",5 "description": "string",6 "federatedAttributeValues": [7 "string"8 ],9 "owner": "LOCAL",10 "createdAt": "string",11 "updatedAt": "string"12 }13]
Example
In this example, the request creates a new group with the name REST example.
Curl
1curl --request POST \2 --url 'https://api.dynatrace.com/iam/v1/accounts/9ad20784-76c6-4167-bfba-9b0d8d72a71d/groups' \3 --header 'Authorization: Bearer abcdefjhij1234567890' \4 --header 'Content-Type: application/json' \5 --data '[6 {7 "name": "REST example",8 "description": "An example of API call",9 "federatedAttributeValues": [10 ]11 }12]'
Request URL
1https://api.dynatrace.com/iam/v1/accounts/9ad20784-76c6-4167-bfba-9b0d8d72a71d/groups
Request body
1[2 {3 "name": "REST example",4 "description": "An example of API call",5 "federatedAttributeValues": [67 ]8 }9]
Response body
1[2 {3 "uuid": "a468e0e0-ef8f-45d8-9b0f-e016984d838b",4 "name": "REST example",5 "owner": "LOCAL",6 "description": "An example of API call",7 "hidden": false,8 "createdAt": null,9 "updatedAt": null10 }11]
Response code
201