list_users
/usersA service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.
In: header
Query Parameters
Page size, 1 to 200; 50 when absent.
int321 <= value <= 200Opaque cursor walking forward, taken from next_cursor.
Opaque cursor walking backward, taken from prev_cursor. Sending it
with cursor is refused.
The order of the page; email when absent.
Value in
- "email"
- "last_seen_at"
- "created_at"
asc or desc; when absent, email sorts ascending and the two
timestamps newest first.
Value in
- "asc"
- "desc"
A case-insensitive substring of the email or the display name.
Only active (true) or only deactivated (false) users.
Comma-separated group ids — keep only users in ANY of them.
^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}(,[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})*$Comma-separated group ids — drop users in ANY of them.
^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}(,[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})*$Comma-separated role ids — keep only users holding ANY of them.
Requires deployment.admin.
^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}(,[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})*$Comma-separated unit ids — keep only users placed in ANY of them or
any unit beneath them. Requires deployment.admin.
^$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}(,[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})*$Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/users"{ "items": [ { "ai_mode_available": true, "created_at": "2019-08-24T14:15:22Z", "display_name": "string", "email": "string", "gender": null, "group_names": [ "string" ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "is_admin": true, "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b", "permissions": [ "string" ], "roles": [ "string" ], "simulation_enabled": true, "status": "active", "unit_names": [ "string" ] } ], "next_cursor": "string", "prev_cursor": "string"}