Add Company Member
Adds an organisation user or service account to a company. 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 <= 128A user or service account URN of the organisation.
1 <= 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/AddCompanyMember" \ -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"
}
}xeonr.auth.api.v1.CompaniesService
CompaniesService is the product-facing surface for companies: groups of teams that products attach shared configuration to (runner pools, billing). A product sees a company only when the company owns at least one team entitled to the calling application; any other company answers NotFound. Its owners manage it here (the console); creating and deleting companies and detaching teams are administrators', on xeonr.auth.private.v1.
Adopt Team POST
Moves a team that is in no company into this one. The caller must own both the team and the company, or be an administrator. Adoption is permanent: only an administrator can detach the team. **Required scopes:** `auth:teams:manage`