Project user role assignments

List project user role assignments

Changed on

Lists the project roles assigned to a user within a project.

get/projects/{project_id}/users/{user_id}/roles

Request

  • Base URL
    https://api.openai.com/v1
  • URL
    https://api.openai.com/v1/projects/{project_id}/users/{user_id}/roles
  • Auth
    HTTP bearer

Path parameters

project_idstring required

The ID of the project to inspect.

user_idstring required

The ID of the user to inspect.

Query parameters

limitinteger

A limit on the number of project role assignments to return.

afterstring

Cursor for pagination. Provide the value from the previous response's next field to continue listing project roles.

order'asc' | 'desc'

Sort order for the returned project roles.

Response

Project user role assignments listed successfully.

object'list' required

Always list.

has_moreboolean required

Whether additional assignments are available when paginating.

nextstring nullable required

Cursor to fetch the next page of results, or null when there are no more assignments.

Changes

    • info

      added the optional property ////// to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status