curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/roles/{id}/usersList all users assigned to a role
curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/roles/{id}/users{
"data": [
{
"id": "user123",
"email": "[email protected]",
"name": "Jane Doe",
"status": "active",
"createdAt": "2024-03-20T10:00:00Z"
},
{
"id": "user456",
"email": "[email protected]",
"name": "John Smith",
"status": "active",
"createdAt": "2024-03-21T10:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 2,
"pages": 1
}
}
{
"error": {
"code": "NOT_FOUND",
"message": "Role not found"
}
}
curl -X GET "https://api.metabind.ai/v1/organizations/org123/roles/role123/users" \
-H "Authorization: Bearer YOUR_API_KEY"