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

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

Value in1
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?roles

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

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 "Content-Type: application/json" \  -d '{}'
{}
{
  "code": "not_found",
  "message": "string",
  "details": [
    {
      "type": "string",
      "value": "string",
      "debug": {}
    }
  ]
}