List project users

GEThttps:/api.openai.com/v1/organization/projects/{project_id}/users

Returns a list of users in the project.

Path parameters

  • project_id
    string
    Required
    The ID of the project.

Query parameters

  • limit
    integer
    Defaults: 20
    A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
  • after
    string

    A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.

Response

A list of ProjectUser objects.

Example request
1
curl https://api.openai.com/v1/organization/projects/proj_abc/users?after=user_abc&limit=20 \
2
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
3
-H "Content-Type: application/json"
Example response
1
{
2
"object": "list",
3
"data": [
4
{
5
"object": "organization.project.user",
6
"id": "user_abc",
7
"name": "First Last",
8
"email": "user@example.com",
9
"role": "owner",
10
"added_at": 1711471533
11
}
12
],
13
"first_id": "user-abc",
14
"last_id": "user-xyz",
15
"has_more": false
16
}
Built with