Returns a list of users in the project.

GET /organization/projects/{project_id}/users

Path parameters

  • project_id string Required

    The ID of the project.

Query parameters

  • limit integer

    A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

    Default value 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.

Responses

  • 200 application/json

    Project users listed successfully.

    Hide response attributes Show response attributes object
    • object string Required
    • data array[object] Required

      Represents an individual user in a project.

      Hide data attributes Show data attributes object
      • object string Required

        The object type, which is always organization.project.user

        Value is organization.project.user.

      • id string Required

        The identifier, which can be referenced in API endpoints

      • name string Required

        The name of the user

      • email string Required

        The email address of the user

      • role string Required

        owner or member

        Values are owner or member.

      • added_at integer Required

        The Unix timestamp (in seconds) of when the project was added.

    • first_id string Required
    • last_id string Required
    • has_more boolean Required
  • 400 application/json

    Error response when project is archived.

    Hide response attribute Show response attribute object
    • error object Required
      Hide error attributes Show error attributes object
      • code string | null Required
      • message string Required
      • param string | null Required
      • type string Required
GET /organization/projects/{project_id}/users
curl \
 --request GET 'https://api.openai.com/v1/organization/projects/{project_id}/users' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "object": "string",
  "data": [
    {
      "object": "organization.project.user",
      "id": "string",
      "name": "string",
      "email": "string",
      "role": "owner",
      "added_at": 42
    }
  ],
  "first_id": "string",
  "last_id": "string",
  "has_more": true
}
Response examples (400)
{
  "error": {
    "code": "string",
    "message": "string",
    "param": "string",
    "type": "string"
  }
}