• Home
  • How to use Dynatrace
  • User management and SSO
  • Dynatrace for Government SAML federation
  • Dynatrace for Government API - Group membership
  • Create user's group memberships

Create user's group memberships

Use POST /v1/accounts/{account-uuid}/users/{email}/groups to add a user to groups.

Endpoint

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

Parameters

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

Request body objects

The RestUserGroupForm object

ElementTypeDescription
groupUuidstring-

Can be null.

groupNamestring-

Can be null.

accountUUIDstring-

Can be null.

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-

Groups added to user successfully

400ExceptionMessage

Invalid email, account uuid or groups