List Enrollments
Returns all user enrollments for an application, including their assigned roles.
Required scopes: auth:enrollments:read (organisation-wide) or auth:apps:read:own (applications owned by a team you belong to)
Authorization
BearerAuth JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.private.v1.ApplicationsService/ListEnrollments" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"enrollments": [
{
"id": "12345",
"userId": "usr_a1b2c3d4e5f6",
"applicationId": "app_prod_myapp",
"createdAt": "2023-01-15T01:30:15.01Z",
"user": {
"userId": "usr_a1b2c3d4e5f6",
"username": "johndoe",
"email": "[email protected]",
"avatarUrl": "https://cdn.example.com/avatars/abc123",
"displayName": "John Doe"
},
"roles": [
{
"name": "admin",
"iacManaged": true,
"roleType": "ROLE_TYPE_UNSPECIFIED",
"description": "string",
"defaultOwnerRole": true,
"displayName": "Administrator",
"teamRank": 0,
"ownerInherited": true
}
],
"iacManaged": true
}
]
}List Bindable Applications POST
Lists the applications a client or service account could be bound to, with the scopes it could ask for on each, derived from scope tiers: `PUBLIC` and `REQUIRES_APPROVAL` scopes of every application, plus `PLATFORM_ONLY` scopes when the principal belongs to a platform application. `APP_ONLY` scopes, applications with nothing requestable and the principal's own application are left out. This is what a binding picker shows; `ListApplications` lists only what the caller administers. **Required scopes:** one of `auth:clients:edit`, `auth:apps:edit`, `auth:apps:edit:own`, `auth:service-accounts:edit`
List Pending Approvals POST
The Approvals inbox: binding requests and access requests into every application the caller administers (an organisation administrator: all of them; anyone else: those owned by a team they own), and applications asking to be enabled on teams the caller owns. Each is decided with its own RPC: DecideApplicationBindingRequest, DecideApplicationAccessRequest, TeamsService.DecideTeamApplicationRequest. **Required scopes:** `auth:apps:edit` (organisation-wide), `auth:apps:edit:own` or `auth:teams:manage`