Add a member to a company (owner)
Adds an organisation user or service account to a company. Company owners and administrators.
Authorization
BearerAuth JWT access token for internal API access. Requires 'private' scope for most endpoints, 'admin' scope for administrative operations.
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.private.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",
"username": "string",
"email": "string",
"avatarUrl": "string",
"role": "COMPANY_ROLE_UNSPECIFIED",
"joinedAt": "2023-01-15T01:30:15.01Z",
"iacManaged": true
}
}xeonr.auth.private.v1.CompaniesService
CompaniesService manages companies: groups of teams that products attach shared configuration to. Administrators (auth:teams:admin plus the auth admin role) create and delete companies and detach teams. Company owners edit their company and its members, and adopt teams they also own. Anyone who belongs to a company, or to a team it owns, can see it; to anyone else a company answers NotFound.
Adopt a team into a company 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.