The identifier of the organization.
List members
GET
/admin/v1/organizations/{organizationId}/membersLists organization members.
query parameters
Returns
curl https://api.userhub.com/admin/v1/organizations/org_28seyVGVL1got6/members \
-H "Authorization: Bearer $USERHUB_ADMIN_KEY"
const res = await adminApi.organizations.listMembers(
"org_28seyVGVL1got6",
);
res, err := adminApi.Organizations().ListMembers(
context.Background(),
"org_28seyVGVL1got6",
nil,
)
$res = $adminApi->organizations->listMembers(
organizationId: 'org_28seyVGVL1got6',
);
res = admin_api.organizations.list_members(
organization_id="org_28seyVGVL1got6",
)
Response bodyJSON
{
"members": [
{
"state": "ACTIVE",
"user": {
"id": "usr_2JRcPwpTSP1nyB",
"state": "ACTIVE",
"displayName": "John Doe",
"email": "[email protected]",
"emailVerified": false,
"phoneNumber": "+12345678901",
"phoneNumberVerified": false,
"imageUrl": "https://example.com/john.jpg",
"address": null,
"accountConnections": [],
"subscription": null,
"memberships": [],
"signupTime": "2024-11-15T13:00:00Z",
"createTime": "2024-11-15T13:00:00Z",
"updateTime": "2024-11-15T13:00:00Z"
},
"role": {
"id": "role_2mD13uXP",
"uniqueId": "member",
"displayName": "Member",
"type": "MEMBER",
"description": "Can see every member in the organization",
"permissionSets": [
"members.invite"
],
"default": true,
"archived": false,
"createTime": "2024-11-15T13:00:00Z",
"updateTime": "2024-11-15T13:00:00Z"
},
"seat": null,
"createTime": "2024-11-15T13:00:00Z",
"updateTime": "2024-11-15T13:00:00Z"
},
{
"state": "ACTIVE",
"user": {
"id": "usr_MKFxzgJaAH8JQ4",
"state": "ACTIVE",
"displayName": "Jane Doe",
"email": "[email protected]",
"emailVerified": true,
"phoneNumber": "+12125550123",
"phoneNumberVerified": false,
"imageUrl": "https://example.com/jane.jpg",
"currencyCode": "USD",
"languageCode": "en",
"regionCode": "US",
"timeZone": "America/New_York",
"address": {
"lines": [
"42 West St"
],
"city": "Brooklyn",
"state": "NY",
"postalCode": "11222",
"country": "US"
},
"accountConnections": [],
"subscription": null,
"memberships": [],
"signupTime": "2024-11-15T13:00:00Z",
"createTime": "2024-11-15T13:00:00Z",
"updateTime": "2024-11-15T13:00:00Z"
},
"role": {
"id": "role_2mD13uXP",
"uniqueId": "member",
"displayName": "Member",
"type": "MEMBER",
"description": "Can see every member in the organization",
"permissionSets": [
"members.invite"
],
"default": true,
"archived": false,
"createTime": "2024-11-15T13:00:00Z",
"updateTime": "2024-11-15T13:00:00Z"
},
"seat": null,
"createTime": "2024-11-15T13:00:00Z",
"updateTime": "2024-11-15T13:00:00Z"
}
],
"nextPageToken": ""
}