provider Roles GET /api/v2/roles/{role_id}/users
@utdk/datadog /api/v2/roles/{role_id}/users
Get all users of a role
Gets all users of a role.
role_id path required
The unique identifier of the role.
string
page[size] query
Size for a given page. The maximum allowed value is 100.
integer
page[number] query
Specific page number to return.
integer
sort query
User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`.
string
filter query
Filter all users by the given string. Defaults to no filtering.
string

Try it

Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

listroleusers
GET/api/v2/roles/{role_id}/users
Gets all users of a role.

Parameters

required

The unique identifier of the role.

Size for a given page. The maximum allowed value is 100.

Specific page number to return.

User attribute to order results by. Sort order is **ascending** by default. Sort order is **descending** if the field is prefixed by a negative sign, for example `sort=-name`. Options: `name`, `email`, `status`.

Filter all users by the given string. Defaults to no filtering.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import datadog from '@utdk/datadog';

await datadog.listroleusers({
  "page[size]": 10,
  "page[number]": 0,
  "sort": "name"
})