Create project user
POST/organization/projects/{project_id}/users
Adds a user to the project. Users must already be members of the organization to be added to a project.
Path Parameters
project_id: string
Body ParametersJSON
user_id: string
The ID of the user.
Returns
Create project user
curl -X POST https://api.openai.com/v1/organization/projects/proj_abc/users \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_id": "user_abc",
"role": "member"
}'
{
"object": "organization.project.user",
"id": "user_abc",
"email": "user@example.com",
"role": "owner",
"added_at": 1711471533
}
Returns Examples
{
"object": "organization.project.user",
"id": "user_abc",
"email": "user@example.com",
"role": "owner",
"added_at": 1711471533
}