List the people who authorized your application and no longer do
Everyone who once authorized your application and is not authorized now, most recently left first, with lifetime_count (everyone who ever authorized it, counted once per person) and former_count. Each person appears with their id, their username in your organization and when and how they left; never a profile field, because the consent that disclosed those has ended. Needs users:read and a plan that includes former users; otherwise 403 with former_users_not_entitled.
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, former_users_not_entitled |
| 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/former/"{ "count": 0, "former_count": 0, "lifetime_count": 0, "next": "string", "previous": "string", "results": [ { "ended_reason": "string", "first_authorized_at": "2019-08-24T14:15:22Z", "id": "string", "left_at": "2019-08-24T14:15:22Z", "username": "string" } ]}Sign the person's session out of your application POST
Ends your application's tokens and authorization codes on that one session. The person stays signed in on the device, their consent stands, and every other application keeps its tokens. `session_not_found` for a session that is not one of the list's.
Read one user's activity with this application GET
Sign-ins to your application, consents given and withdrawn, blocks, and profile edits naming the fields the person's consent and your configuration disclose: the same body `GET /api/v1/userinfo/activity/` returns. Never another application's rows, an IP address or a user agent. Needs `profile_activity:read`; `profile_section_hidden` when your configuration hides the activity section.