Get a service user details in the specified account.git
The request produces an application/json payload.
GET
https://api.dynatrace.com/iam/v1/accounts/{accountUuid}/service-users/{userUuid}
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.
| 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 |
| userUuid | string | The UUID of the required user. | path | Required |
| Code | Type | Description |
|---|---|---|
| 200 | External | Success. The user has been fetched. |
ExternalServiceUserWithGroupUuidDto object| Element | Type | Description |
|---|---|---|
| uid | string | UUID of service user |
| string | Email of service user | |
| name | string | Name of service user |
| surname | string | Surname of service user |
| description | string | The description of the service user |
| createdAt | string | The date and time when the user was created in |
| groupUuid | string | Uuid of the group which enables assigning policy to service user |
{"uid": "string","email": "string","name": "string","surname": "string","description": "string","createdAt": "string","groupUuid": "string"}
In this example, the request gets a service user with userUuid of 7a1d224d-0ebc-4318-ab1e-64b217b7c156 in the account with accountUuid 2b794097-8ad2-4b32-b923-0131da2eeddf. The example result is truncated to three entries.
curl -X 'GET' \'https://api.dynatrace.com/iam/v1/accounts/2b794097-8ad2-4b32-b923-0131da2eeddf/service-users/7a1d224d-0ebc-4318-ab1e-64b217b7c156' \-H 'accept: application/json' \-H 'Authorization: Bearer eywedGciOiJFUzI1NiIsInR7cCI6IkpCDVIsImtpZCI6IjEifQ'
https://api.dynatrace.com/iam/v1/accounts/2b794097-8ad2-4b32-b923-0131da2eeddf/service-users/7a1d224d-0ebc-4318-ab1e-64b217b7c156
{"uid": "7a1d224d-0ebc-4318-ab1e-64b217b7c156","email": "7a1d224d-0ebc-4318-ab1e-64b217b7c156@service.sso.dynatrace.com","name": "serviceUser1","surname": "SERVICE_IDENTITY","description": "","createdAt": "2024-10-10T07:44:38Z","groupUuid": "323c776c-23ff-7896-a0f1-229927aea567"}
200