Skip to Content
Xeonr Developer Docs

Set Member Application Roles

POST
/xeonr.auth.api.v1.TeamsService/SetMemberApplicationRoles

Sets the full set of per-application role names a member holds within a team. Under auth:teams:app-roles the target application is restricted to applications the calling client is bound to, letting a product manage only its own permissions. The acting subject must be a team owner.

Required scopes: auth:teams:app-roles or auth:teams:manage

Authorization

AuthorizationBearer <token>

JWT access token obtained via OAuth2 flow or service account

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

team?string
Length1 <= length <= 128
memberId?string
Length1 <= length <= 128
application?string

Application slug the roles belong to. Defaults to the calling client's application. Under auth:teams:app-roles this is restricted to applications the calling client is bound to.

Lengthlength <= 64
roles?array<>

The full set of ApplicationRole names the member should hold within the team for the application. An empty list clears them.

A team owner's inherited role (the application's highest-ranked team role, reported in inherited_roles) is outside this set: naming it is accepted and changes nothing, leaving it out does not remove it, and an explicit assignment of it made earlier is kept as it is. To take it away, demote the member.

Itemsitems <= 32
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.TeamsService/SetMemberApplicationRoles" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{}