curl --request POST \
--url https://api.openai.com/v1/organization/users/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": "owner"
}
'{
"object": "organization.user",
"id": "<string>",
"name": "<string>",
"email": "<string>",
"role": "owner",
"added_at": 123
}Modifies a user’s role in the organization.
curl --request POST \
--url https://api.openai.com/v1/organization/users/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"role": "owner"
}
'{
"object": "organization.user",
"id": "<string>",
"name": "<string>",
"email": "<string>",
"role": "owner",
"added_at": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the user.
The new user role to modify. This must be one of owner or member.
owner or reader
owner, reader User role updated successfully.
Represents an individual user within an organization.
The object type, which is always organization.user
organization.user The identifier, which can be referenced in API endpoints
The name of the user
The email address of the user
owner or reader
owner, reader The Unix timestamp (in seconds) of when the user was added.
Was this page helpful?