Set Company Member Role
Promotes or demotes a company member; the last owner cannot be demoted. Company owners and administrators.
Required scopes: auth:teams:manage
JWT access token obtained via OAuth2 flow or service account
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
Company URN or slug.
1 <= length <= 1281 <= length <= 128The subject's governance role within a company.
"COMPANY_ROLE_UNSPECIFIED" | "COMPANY_ROLE_OWNER" | "COMPANY_ROLE_MEMBER"Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.CompaniesService/SetCompanyMemberRole" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"member": {
"memberId": "urn:xeonr:auth:uid:user:123",
"role": "COMPANY_ROLE_UNSPECIFIED",
"username": "string",
"avatarUrl": "string",
"joinedAt": "2023-01-15T01:30:15.01Z"
}
}Remove Company Member POST
Removes a member, ending what they inherit through the company; the last owner cannot be removed. Company owners and administrators. **Required scopes:** `auth:teams:manage`
Set Team Inheritance POST
Sets whether the company's members are members of one of its teams. Company owners and administrators. **Required scopes:** `auth:teams:manage`