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

Parameters: list_group_users
NameTypeDescription
group_id string required string Group id from list_groups.
cursor string string Next page cursor from the previous call.

Request

cURL
curl "https://cotlet.dev/api/v1/learnupon/group-users?group_id=group_8c41d2" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("learnupon", "list_group_users", {"group_id":"group_8c41d2"})
Node.js
const result = await cotlet.call('learnupon', 'list_group_users', {"group_id":"group_8c41d2"});
CLI
cotlet call learnupon list_group_users --data '{"group_id":"group_8c41d2"}'

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.