• Home
  • Manage
  • Access control
  • User management and SSO
  • Dynatrace for Government SAML federation
  • Dynatrace for Government API - Group membership
  • Update user's group memberships

Update user's group memberships

Use PUT /v1/accounts/{account-uuid}/users/{email}/groups to update a user's group memberships.

Endpoint

/v1/accounts/{account-uuid}/users/{email}/groups

Parameters

ParameterTypeDescriptionInRequired
account-uuidstring-pathrequired
emailstring-pathrequired
bodyRestUserGroupForm[]-bodyoptional

Request body objects

The RequestBody object

The object doesn't provide any parameters.

The RestUserGroupForm object

ElementTypeDescriptionRequired
groupUuidstring-optional
groupNamestring-optional
accountUUIDstring-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.

json
[ { "groupUuid": "string", "groupName": "string", "accountUUID": "string" } ]

Response

Response codes

CodeTypeDescription
204

Old Groups removed and new ones added successfully

400ExceptionMessage

Invalid email, account uuid or groups