Skip to Content
Xeonr Developer Docs

Set a member's per-application roles within a team (owner)

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

Authorization

BearerAuth
AuthorizationBearer <token>

JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.

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
Length1 <= length <= 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.private.v1.TeamsService/SetMemberApplicationRoles" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{}