List group users
Users in one group, with their user type and whether they accepted the invite.
GET https://cotlet.dev/api/v1/learnupon/group-users
read
Lists the users of one group, a page at a time; pass next_cursor back as cursor. Pending invitees appear with pending true until they accept. A manager sees a group only if an admin assigned it to them.
Parameters
| Name | Type | Description |
|---|---|---|
| group_id string required | string | Group id from list_groups. |
| cursor string | string | Next page cursor from the previous call. |
Request
curl "https://cotlet.dev/api/v1/learnupon/group-users?group_id=group_8c41d2" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("learnupon", "list_group_users", {"group_id":"group_8c41d2"}) const result = await cotlet.call('learnupon', 'list_group_users', {"group_id":"group_8c41d2"}); cotlet call learnupon list_group_users --data '{"group_id":"group_8c41d2"}' Example response
{
"users": [
{
"user_id": "51872",
"name": "Maria Nowak",
"user_type": "learner",
"pending": false
},
{
"user_id": "51890",
"name": "Tom Reyes",
"user_type": "learner",
"pending": true
}
],
"next_cursor": null
}