Skip to main content
GET
/
app
/
v1
/
organizations
/
{organizationId}
/
roles
/
{roleId}
/
users
List Role Users
curl --request GET \
  --url https://api.example.com/app/v1/organizations/{organizationId}/roles/{roleId}/users

Path Parameters

organizationId
string
required
Organization ID
roleId
string
required
Role ID

Response

Returns an array of User objects assigned to the role.
{
  "data": [
    {
      "id": "user123",
      "email": "jane.doe@example.com",
      "name": "Jane Doe",
      "status": "active",
      "createdAt": "2024-03-20T10:00:00Z"
    },
    {
      "id": "user456",
      "email": "john.smith@example.com",
      "name": "John Smith",
      "status": "active",
      "createdAt": "2024-03-21T10:00:00Z"
    }
  ]
}

Error Responses

Role Not Found

{
  "error": {
    "code": "NOT_FOUND",
    "message": "Role not found"
  }
}

Code Examples

curl -X GET "https://api.metabind.ai/app/v1/organizations/org123/roles/role123/users" \
  -H "Authorization: Bearer YOUR_JWT"