Retrieve all members of an organization along with their roles and permissions. Requires valid organization membership.
curl --request GET \
--url https://{deploymentHost}/organizations/{id}/members
{
"status": 200,
"message": "",
"data": [
{
"id": "membership_987654321",
"user": {
"id": "user_456789123",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"username": "johndoe",
"image_url": "https://cdn.example.com/avatars/john.jpg",
"email_verified": true,
"phone_verified": true,
"two_factor_enabled": true
},
"roles": [
{
"id": "role_admin",
"name": "Administrator",
"permissions": [
"organization:admin",
"organization:manage",
"organization:read"
]
}
],
"joined_at": "2024-01-01T10:00:00Z",
"last_active": "2024-01-15T18:30:00Z"
},
{
"id": "membership_123456789",
"user": {
"id": "user_789012345",
"first_name": "Jane",
"last_name": "Smith",
"email": "jane.smith@example.com",
"username": "janesmith",
"image_url": "https://cdn.example.com/avatars/jane.jpg",
"email_verified": true,
"phone_verified": false,
"two_factor_enabled": false
},
"roles": [
{
"id": "role_member",
"name": "Member",
"permissions": [
"organization:read"
]
},
{
"id": "role_manager",
"name": "Manager",
"permissions": [
"organization:manage",
"organization:read"
]
}
],
"joined_at": "2024-01-05T14:30:00Z",
"last_active": "2024-01-14T16:45:00Z"
}
],
"session": {
"signin_attempts": [],
"signins": [
{
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
],
"signup_attempts": [],
"active_signin": {
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
},
"errors": []
}
Session cookie authentication for production deployments. The session token is automatically set as an HTTP-only, secure cookie.
Organization ID
Organization members retrieved successfully
The response is of type object
.
curl --request GET \
--url https://{deploymentHost}/organizations/{id}/members
{
"status": 200,
"message": "",
"data": [
{
"id": "membership_987654321",
"user": {
"id": "user_456789123",
"first_name": "John",
"last_name": "Doe",
"email": "john.doe@example.com",
"username": "johndoe",
"image_url": "https://cdn.example.com/avatars/john.jpg",
"email_verified": true,
"phone_verified": true,
"two_factor_enabled": true
},
"roles": [
{
"id": "role_admin",
"name": "Administrator",
"permissions": [
"organization:admin",
"organization:manage",
"organization:read"
]
}
],
"joined_at": "2024-01-01T10:00:00Z",
"last_active": "2024-01-15T18:30:00Z"
},
{
"id": "membership_123456789",
"user": {
"id": "user_789012345",
"first_name": "Jane",
"last_name": "Smith",
"email": "jane.smith@example.com",
"username": "janesmith",
"image_url": "https://cdn.example.com/avatars/jane.jpg",
"email_verified": true,
"phone_verified": false,
"two_factor_enabled": false
},
"roles": [
{
"id": "role_member",
"name": "Member",
"permissions": [
"organization:read"
]
},
{
"id": "role_manager",
"name": "Manager",
"permissions": [
"organization:manage",
"organization:read"
]
}
],
"joined_at": "2024-01-05T14:30:00Z",
"last_active": "2024-01-14T16:45:00Z"
}
],
"session": {
"signin_attempts": [],
"signins": [
{
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
],
"signup_attempts": [],
"active_signin": {
"id": "signin_987654321",
"user_id": "user_456789123",
"created_at": "2024-01-01T12:00:00Z"
}
},
"errors": []
}