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

Get a user's group memberships

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

Endpoint

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

Parameters

ParameterTypeDescriptionInRequired
account-uuidstring-pathrequired
emailstring-pathrequired

Response

Response codes

CodeTypeDescription
200RestUserWithGroups

User groups fetched successfully

400ExceptionMessage

Invalid email or account uuid

404NotFoundException

User not found or does not belong to account

Response body objects

The RestUserWithGroups object

ElementTypeDescription
uidstring-
emailstring-
namestring-
surnamestring-
passwordstring-
companystring-
countryCodestring-
userStatusstring-
accountUuidsstring[]-
ownerAccountUuidstring-
typestring-
dcsActiveboolean-
passwordChangedAtstring-
userLoginMetadataRestUserLoginMetadata-
createdAtstring-
updatedAtstring-
groupsRestUserGroup[]-

The RestUserLoginMetadata object

ElementTypeDescription
successfulLoginCounterinteger-
failedLoginCounterinteger-
lastSuccessfulLoginstring-
lastFailedLoginstring-
resetPasswordTokenSentAtstring-
lastSuccessfulBasicAuthenticationstring-
createdAtstring-
updatedAtstring-

The RestUserGroup object

ElementTypeDescription
groupNamestring-
uuidstring-
ownerstring-
descriptionstring-
accountUUIDstring-
accountNamestring-
federatedAttributeValuesstring[]-
createdAtstring-
updatedAtstring-

Response body JSON model

json
{ "uid": "string", "email": "string", "name": "string", "surname": "string", "password": "string", "company": "string", "countryCode": "string", "userStatus": "string", "accountUuids": [ "string" ], "ownerAccountUuid": "string", "type": "string", "dcsActive": true, "passwordChangedAt": "string", "userLoginMetadata": { "successfulLoginCounter": 1, "failedLoginCounter": 1, "lastSuccessfulLogin": "string", "lastFailedLogin": "string", "resetPasswordTokenSentAt": "string", "lastSuccessfulBasicAuthentication": "string", "createdAt": "string", "updatedAt": "string" }, "createdAt": "string", "updatedAt": "string", "groups": [ { "groupName": "string", "uuid": "string", "owner": "string", "description": "string", "accountUUID": "string", "accountName": "string", "federatedAttributeValues": [ "string" ], "createdAt": "string", "updatedAt": "string" } ] }