Atlas
Admin — Roles

List role members

Returns all users assigned to a specific role in the organization.

GET
/api/v1/admin/roles/{id}/members

Path Parameters

id*string
Length1 <= length <= 128

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:3001/api/v1/admin/roles/role_abc123/members"
{
  "members": [
    {
      "userId": "string",
      "role": "string",
      "createdAt": "string"
    }
  ],
  "total": 0
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}