List group users
GET/organization/groups/{group_id}/users
Lists the users assigned to a group.
Path Parameters
group_id: string
Query Parameters
after: optional string
A cursor for use in pagination. Provide the ID of the last user from the previous list response to retrieve the next page.
limit: optional number
A limit on the number of users to be returned. Limit can range between 0 and 1000, and the default is 100.
minimum0
maximum1000
Returns
has_more: boolean
Whether more users are available when paginating.
next: string
Cursor to fetch the next page of results, or null when no further users are available.
object: "list"
Always list.
List group users
curl https://api.openai.com/v1/organization/groups/group_01J1F8ABCDXYZ/users?limit=20 \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
-H "Content-Type: application/json"
{
"object": "list",
"data": [
{
"object": "organization.user",
"id": "user_abc123",
"name": "Ada Lovelace",
"email": "ada@example.com",
"role": "owner",
"added_at": 1711471533
}
],
"has_more": false,
"next": null
}
Returns Examples
{
"object": "list",
"data": [
{
"object": "organization.user",
"id": "user_abc123",
"name": "Ada Lovelace",
"email": "ada@example.com",
"role": "owner",
"added_at": 1711471533
}
],
"has_more": false,
"next": null
}