List Pending Approvals
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
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/ListPendingApprovals" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"bindingRequests": [
{
"principalType": "BINDING_PRINCIPAL_TYPE_UNSPECIFIED",
"principalId": "string",
"principalName": "string",
"principalApplicationId": "string",
"approved": true,
"requestedAt": "2023-01-15T01:30:15.01Z",
"mode": "CLIENT_APPLICATION_BINDING_MODE_UNSPECIFIED",
"requestedScopes": [
"string"
],
"approvedScopes": [
"string"
],
"state": "APPLICATION_BINDING_STATE_UNSPECIFIED",
"decisionPending": true,
"targetApplicationId": "string",
"targetApplicationName": "string",
"targetOwnerTeamSlug": "string",
"autoApprovedScopes": [
"string"
]
}
],
"accessRequests": [
{
"requestId": "b8a7c6d5-e4f3-4a2b-9c8d-7e6f5a4b3c2d",
"applicationId": "string",
"applicationName": "string",
"applicationSlug": "string",
"ownerTeamSlug": "string",
"user": {
"userId": "usr_a1b2c3d4e5f6",
"username": "johndoe",
"email": "[email protected]",
"avatarUrl": "https://cdn.example.com/avatars/abc123",
"displayName": "John Doe"
},
"message": "string",
"state": "ACCESS_REQUEST_STATE_UNSPECIFIED",
"requestedAt": "2023-01-15T01:30:15.01Z",
"decidedAt": "2023-01-15T01:30:15.01Z"
}
],
"teamRequests": [
{
"requestId": "b8a7c6d5-e4f3-4a2b-9c8d-7e6f5a4b3c2d",
"applicationId": "string",
"applicationName": "string",
"applicationSlug": "string",
"team": "string",
"teamSlug": "string",
"teamName": "string",
"requestedBy": "string",
"message": "string",
"state": "ACCESS_REQUEST_STATE_UNSPECIFIED",
"requestedAt": "2023-01-15T01:30:15.01Z",
"decidedAt": "2023-01-15T01:30:15.01Z"
}
]
}List Enrollments POST
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)
List Pending Binding Requests POST
The approvals inbox: every client and service-account binding request, across all applications the caller administers, that is waiting on a decision. That is a new request, or an approved binding whose requested scopes have grown. An organisation administrator sees every application's; anyone else sees those of applications owned by a team they own. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)