List users
GEThttps:/api.openai.com/v1/organization/users
Lists all of the users in the organization.
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.emails
array
Filter by the email address of users.
Response
A list of User objects.
Example request
1 curl https://api.openai.com/v1/organization/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.user",6 "id": "user_abc",7 "name": "First Last",8 "email": "user@example.com",9 "role": "owner",10 "added_at": 171147153311 }12 ],13 "first_id": "user-abc",14 "last_id": "user-xyz",15 "has_more": false16 }
Built with