Group management API - PUT a user group

Updates parameters of a user group.

The request consumes an application/json payload.

PUT

https://api.dynatrace.com/iam/v1/accounts/{accountUuid}/groups/{groupUuid}

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 OAuth clients.

Parameters

Parameter
Type
Description
In
Required
accountUuid
string

The ID of the required account.

You can find the UUID on the Account Management > Identity & access management > OAuth clients page, during creation of an OAuth client.

path
required
groupUuid
string

The UUID of the required user group.

path
required
body

The body of the request. Contains the updated parameters of the group.

You can't change the UUID of the group.

body
required

Request body objects

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.

If present and the group has owner = LOCAL, then group owner is set to SAML.

If missing and the group has owner = SAML, then group owner is set to LOCAL.

Cannot set this value for groups having owner set to SCIM or ALL_USERS.

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.

{
"uuid": "string",
"name": "string",
"description": "string",
"federatedAttributeValues": [
"string"
]
}

Response

Response codes

Code
Description
200

Success. The group has been modified. The response doesn't have a body.

Example

In this example, the request updates the configuration of the user group created in the POST request example. The response code of 200 indicates that the modification was successful.

Curl

curl --request PUT \
--url 'https://api.dynatrace.com/iam/v1/accounts/9ad20784-76c6-4167-bfba-9b0d8d72a71d/groups/bd4027ea-90de-48cb-90ff-9dc390517b74' \
--header 'Authorization: Bearer abcdefjhij1234567890' \
--header 'Content-Type: application/json' \
--data '{
"uuid": "a468e0e0-ef8f-45d8-9b0f-e016984d838b",
"name": "REST example - update",
"description": "An updated example of API call",
"federatedAttributeValues": [
]
}'

Request URL

https://api.dynatrace.com/iam/v1/accounts/9ad20784-76c6-4167-bfba-9b0d8d72a71d/groups/bd4027ea-90de-48cb-90ff-9dc390517b74

Request body

{
"uuid": "a468e0e0-ef8f-45d8-9b0f-e016984d838b",
"name": "REST example - update",
"description": "An updated example of API call",
"federatedAttributeValues": [
]
}

Response code

200