List members
Members of an organization with user ID, name, email and role.
GET https://cotlet.dev/api/v1/hubstaff/organizations/{organization_id}/members
read
Lists the members of one organization with their user ID and role, as on People > Members. Use the user IDs in the tools that add time or put someone on a project.
Parameters
| Name | Type | Description |
|---|---|---|
| organization_id integer required | integer | Organization ID from list_organizations. |
| limit integer | integer | 1 to 100. Default: 50. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl https://cotlet.dev/api/v1/hubstaff/organizations/1/members \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("hubstaff", "list_members", {"organization_id":1}) const result = await cotlet.call('hubstaff', 'list_members', {"organization_id":1}); cotlet call hubstaff list_members --data '{"organization_id":1}' Example response
{
"members": [
{
"user_id": 3011,
"name": "Maria Silva",
"email": "maria@example.com",
"role": "user"
},
{
"user_id": 3012,
"name": "Tom Becker",
"email": "tom@example.com",
"role": "user"
},
{
"user_id": 3014,
"name": "Dana Whitfield",
"email": "dana@example.com",
"role": "manager"
}
],
"next_cursor": null
}