List the users who have authorized this application
Consent-scoped: only users holding a currently-active grant with this application, determined live rather than from a stored list. Revoking a grant removes that user from this list immediately.
Authorization
apiKey An API key, presented as Authorization: Bearer eitozx_…. Carries the Application's own authority rather than authority a user delegated to it, and reaches only users who currently hold a grant with that Application. An organization's key reaches every application the organization owns and names the one it acts on in the Onefold-Application header. Not interchangeable with an OAuth2 access token despite the shared scheme.
In: header
Header Parameters
The id of the application this call acts on. Required with an organization API key, which reaches every application its organization owns; ignored with an application's own key, which always acts on its application.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
Error codes
Every error response carries one of these in its code field. Branch on the code, never on the detail text.
| Status | code |
|---|---|
| 400 | validation_failed, parse_error, api_key_application_required |
| 401 | not_authenticated, authentication_failed |
| 403 | permission_denied, api_key_scope_missing |
| 404 | api_key_application_not_found |
| 429 | rate_limited |
Before you run the sample
- Replace
YOUR_API_KEYwith your API key. - The key needs the
users:readscope, or no scopes at all.
curl -X GET "https://example.com/api/v1/manage/users/"{ "count": 0, "next": "string", "previous": "string", "results": [ { "banner_url": "string", "birthdate": "2019-08-24", "date_joined": "2019-08-24T14:15:22Z", "email": "user@example.com", "email_verified": true, "family_name": "string", "gender": "male", "given_name": "string", "id": "string", "is_verified": true, "locale": "string", "middle_name": "string", "name": "string", "nickname": "string", "picture": "string", "preferred_username": "string", "sub": "string", "updated_at": 0, "username": "string", "website": "http://example.com" } ]}Read the campaign one user arrived through GET
The first and most recent campaign your own sign-in links brought this user in through — the `utm_*` parameters on your `/o/authorize/` link or your hosted sign-in page. Never how anybody else acquired the same person. `attribution` is null when no campaign was captured. Needs `attribution:read` and a plan that includes per-user attribution; otherwise `403` with `attribution_not_entitled`. A deployment that does not offer attribution answers `404` with `feature_unavailable`.
Look up one authorized user by id, email or username GET
Give exactly one of `id`, `email` or `username`. Returns the same claims `/api/v1/manage/users/{id}/` returns for that person. **Prefer `id`.** It is the `sub` claim you already store; a person can change their email address or their username whenever they like, so a lookup keyed on either can stop finding somebody who is still your user. **An old `id` finds the person it means now.** When somebody moves their profile to another email address, or two of their accounts become one, your application knows them by a new `sub` (`subject.changed`). Looking up the old `id` answers with them, and the body's `id` is the current one. It does so only if their old profile had authorized this application. **Only people who have authorized this application can be found**, and somebody who has not is indistinguishable from somebody with no account here: both answer `404` with `not_found`. **A text identifier only matches what that person disclosed to you.** Matching on `email` needs their grant to carry `identity`; matching on `username` needs `identity` or `profile`. Otherwise a `200` would hand you a value the missing scope withheld. Somebody who granted `openid` alone is findable by `id` and by nothing else — see /docs/concepts/scopes-and-claims.