Gets the information about user's group membership.
The request produces an application/json
payload.
GET |
|
To execute this request, you need the Allow read access for identity resources (users and groups) (account-idm-read
) scope assigned to your token. To learn how to obtain and use it, see OAuth clients.
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.
The email address of the required user.
GroupUserDto
objectThe UUID of the user.
The email address of the user.
The first name of the user.
The last name of the user.
The status of this user in Dynatrace:
ACTIVE
: The user is active.INACTIVE
: The user is deactivated and cannot sign in to Dynatrace.PENDING
: The user received an invitation, but hasn't completed sign-up yet.DELETED
: The user was deleted and cannot sign in to Dynatrace anymore.ECUSTOMS_MANUALLY_BLOCKED
: The user is blocked due to to a trade and export compliance violation.ACTIVE
INACTIVE
PENDING
DELETED
ECUSTOMS_MANUALLY_BLOCKED
The user is (true
) or is not (false
) an emergency contact for the account.
AccountGroupDto
objectThe name of the user group.
The UUID of the user group.
The type of the group. LOCAL
, SCIM
, SAML
and DCS
corresponds to the identity provider from which the group originates. ALL_USERS
is a special case of LOCAL
group. It means that group is always assigned to all users in the account.
LOCAL
SCIM
SAML
DCS
ALL_USERS
The UUID of the Dynatrace account.
The name of the Dynatrace account.
A short description of the group.
The date and time of the group creation in 2021-05-01T15:11:00Z
format.
The date and time of the most recent modification to the group in 2021-05-01T15:11:00Z
format.
{"uid": "string","email": "string","name": "string","surname": "string","userStatus": "ACTIVE","emergencyContact": true,"groups": [{"groupName": "string","uuid": "string","owner": "LOCAL","accountUUID": "string","accountName": "string","description": "string","createdAt": "string","updatedAt": "string"}]}
In this example, the reuqest gets the group membership of the user with the john.smith@company.com email address. The result is truncated to three entries.
curl --request GET \--url 'https://api.dynatrace.com/iam/v1/accounts/2b794097-8ad2-4b32-b923-0131da2eeddf/users/john.smith@company.com' \--header 'Authorization: Bearer abcdefjhij1234567890'
https://api.dynatrace.com/iam/v1/accounts/2b794097-8ad2-4b32-b923-0131da2eeddf/users/john.smith@company.com
{"uid": "a5f4a0df-ca5a-47c6-a7c1-d2ac95cf1550","email": "john.smith@company.com","groups": [{"groupName": "Confidential data admin","uuid": "541802b0-623c-4193-8728-036ed01d4eb4","owner": "LOCAL","description": null,"hidden": false,"accountUUID": "2b794097-8ad2-4b32-b923-0131da2eeddf","accountName": "Dynatrace","createdAt": "2020-03-11T03:01:01Z","updatedAt": "2020-03-11T03:01:01Z"},{"groupName": "Monitoring viewer","uuid": "7a1d224d-0ebc-4318-ab1e-64b217b7c156","owner": "LOCAL","description": null,"hidden": false,"accountUUID": "2b794097-8ad2-4b32-b923-0131da2eeddf","accountName": "Dynatrace","createdAt": "2020-03-11T03:01:01Z","updatedAt": "2020-03-11T03:01:01Z"},{"groupName": "Monitoring admin","uuid": "f335c6ae-f046-48ad-a0a2-49bb8fdca07b","owner": "LOCAL","description": null,"hidden": false,"accountUUID": "2b794097-8ad2-4b32-b923-0131da2eeddf","accountName": "Dynatrace","createdAt": "2020-03-11T03:01:01Z","updatedAt": "2020-03-11T03:01:01Z"},{"groupName": "Account manager","uuid": "56d56aba-c12f-44c1-a0ba-42eba3e3ff84","owner": "LOCAL","description": null,"hidden": false,"accountUUID": "2b794097-8ad2-4b32-b923-0131da2eeddf","accountName": "Dynatrace","createdAt": "2020-03-11T03:01:01Z","updatedAt": "2020-03-11T03:01:01Z"}],"emergencyContact": false,"userStatus": "ACTIVE"}
200