PRIVATEApplications
Applications
postAdd Enrollment
Enrolls a user in an application with the specified roles. **Required scopes:** `auth:enrollments:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postCreate Application
Creates a new application with the specified configuration, including identity providers, scopes, and enrollment settings. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postCreate Application Invitation
Invites an email address to use the application: a pending enrollment that becomes real on that address's first sign-in to a client needing the application (the signed-in user's verified email must match), and expires unused after `expires_in_days` (default 14). Re-inviting an address replaces its open invitation. The invitee is emailed. Refused for an application open to everyone, and for the auth application. **Required scopes:** `auth:enrollments:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postCreate Scope
Creates a new OAuth scope for an application. Optionally assign the scope to a specific role. **Required scopes:** `auth:scopes:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to) or `auth:apps:manage:self` (a service account, for its own application only; never the auth application)
postCreate Automation Key
Creates an automation key on the application, bound to an automation-flagged user. The secret is returned exactly once. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postCreate Resource Type
Registers a new resource type for Rich Authorization Requests (RFC 9396). The type name will be used as {app_slug}:{type} in authorization_details. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postCreate Role
Creates a new role for an application. Roles can be assigned to users and scopes. **Required scopes:** `auth:roles:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postDecide Application Access Request
Approves or rejects a person's request for access. Approval creates their direct enrollment with the roles given; rejection keeps the request as rejected, which the requester sees on the consent screen and may ask again. **Required scopes:** `auth:enrollments:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postDecide Application Binding Request
Approves or rejects a binding into this application. Approval grants the binding with exactly the scopes named in `approved_scopes` (a subset of what was requested); approving it again replaces that set. Rejection keeps the binding as rejected, granting nothing, so the requester can see the decision and ask again by changing its scopes. For a client binding, approval also settles its mode: `ENROLLED` (people signing in to the client must be enrolled in this application, or are enrolled automatically) or `DELEGATED` (the client calls this application's API on their behalf without them being enrolled). Approving an already-approved client binding with a different mode changes it. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to) or `auth:apps:manage:self` (a service account, for its own application only; never the auth application)
postDelete Application
Permanently deletes an application and all associated data including enrollments and scopes. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postDelete Role
Deletes a role from an application. Users with this role will lose the associated permissions. **Required scopes:** `auth:roles:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postGet Application
Retrieves the full details of an application by its ID, including scopes, roles, and configuration. **Required scopes:** `auth:apps:read` (organisation-wide) or `auth:apps:read:own` (applications owned by a team you belong to) or `auth:apps:manage:self` (a service account, for its own application only; never the auth application)
postGet Application API Key Policy
Returns an application's API key policy and the limits in force. **Required scopes:** `auth:apps:read` (organisation-wide) or `auth:apps:read:own` (applications owned by a team you belong to)
postList Application Access Requests
Lists people asking for access to this application, waiting on its owners' decision (and, with include_decided, the decided ones). **Required scopes:** `auth:enrollments:read` (organisation-wide) or `auth:apps:read:own` (applications owned by a team you belong to)
postList Application Binding Requests
Lists clients and service accounts asking to be bound to this application. A binding is what makes this application's scopes requestable by another principal and what puts this application's audience into that principal's tokens, so it waits on the application owner's decision. **Required scopes:** `auth:apps:read` (organisation-wide) or `auth:apps:read:own` (applications owned by a team you belong to) or `auth:apps:manage:self` (a service account, for its own application only; never the auth application)
postList Application Invitations
Lists the application's open invitations: not yet converted into an enrollment and not expired. **Required scopes:** `auth:enrollments:read` (organisation-wide) or `auth:apps:read:own` (applications owned by a team you belong to)
postList Applications
Returns a list of all applications in the system. **Required scopes:** `auth:apps:read` (organisation-wide) or `auth:apps:read:own` (applications owned by a team you belong to)
postList Automation Keys
Lists the automation keys registered on an application. **Required scopes:** `auth:apps:read` (organisation-wide) or `auth:apps:read:own` (applications owned by a team you belong to)
postList Bindable Applications
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`
postList 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)
postList 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`
postList Pending Binding Requests
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)
postList Team Application Requests
Lists the teams this application has asked to be enabled on, from the application's side: waiting, and with include_decided the approved and rejected ones. **Required scopes:** `auth:apps:read` (organisation-wide) or `auth:apps:read:own` (applications owned by a team you belong to)
postRemove Scope
Removes an OAuth scope from an application. **Required scopes:** `auth:scopes:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postRemove Enrollment
Removes a user's enrollment from an application, revoking their access. **Required scopes:** `auth:enrollments:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postRemove Resource Type
Removes a resource type from an application. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postRequest Team Application Binding
Asks a team to enable this application: "<app> would like to be enabled on your team". Only for an application whose team enablement is BY_REQUEST, by someone who administers it. The team's owners are notified and decide in their Approvals inbox; approval creates the entitlement. An organisation administrator enables teams directly instead. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postRevoke Application Invitation
Withdraws an open invitation. An invitation that already converted is an enrollment: remove that instead. **Required scopes:** `auth:enrollments:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postRevoke Automation Key
Revokes an automation key, optionally revoking every credential it issued. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postSet Application API Key Policy
Sets an application's API key policy. A zero field restores the platform default; max_lifetime_days -1 sets no lifetime cap. **Required scopes:** `auth:apps:edit` (organisation-wide)
postTransfer Application
Changes which team owns an application. A team owner may move an application between teams they own; handing it to, or taking it from, the organisation requires an organisation administrator. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postUpdate Application
Updates an existing application's configuration. Use update_mask to specify which fields to update. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postUpdate Scope
Updates an existing OAuth scope's configuration. **Required scopes:** `auth:scopes:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to) or `auth:apps:manage:self` (a service account, for its own application only; never the auth application)
postUpdate Enrollment
Updates a user's enrollment to assign or remove roles. **Required scopes:** `auth:enrollments:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postUpdate Resource Type
Updates an existing resource type's properties (schema, display fields, iac_managed) without requiring delete and recreate. Use update_mask to specify which fields to update. **Required scopes:** `auth:apps:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
postUpdate Role
Updates an existing role's properties (e.g. iac_managed) without requiring delete and recreate. **Required scopes:** `auth:roles:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)
Verify MFA Enrollment POST
Confirms a pending org-account MFA enrollment by validating a TOTP code from the authenticator app, activates 2FA, and returns one-time recovery codes. Requires a recent login (step-up). **Required scopes:** `auth:account:edit`
Add Enrollment POST
Enrolls a user in an application with the specified roles. **Required scopes:** `auth:enrollments:edit` (organisation-wide) or `auth:apps:edit:own` (applications owned by a team you belong to)