Skip to Content
Xeonr Developer Docs
API Specification

PRIVATExeonr.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.

postAdd a member to a company (owner)

Adds an organisation user or service account to a company. Company owners and administrators.

postAdopt a team into a company

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.

postCreate a company (admin)

Creates a company with its first owner. Administrators only.

postDelete a company (admin)

Deletes a company that owns no teams. Detach its teams first. Administrators only.

postDetach a team from its company (admin)

Removes a team from its company. Administrators only.

postGet a company

Gets one company and the caller's role in it. A company the caller cannot see answers NotFound.

postList every company in the organisation (admin)

Lists all companies in the organisation, ordered by slug. Administrators only.

postList a company's members

Lists the people and service accounts that belong to a company, oldest first.

postList the teams a company owns

Lists the teams a company has adopted, ordered by slug.

postList the companies the caller can see

Lists the companies the calling user belongs to, and those that own a team the caller belongs to.

postRemove a member from a company (owner)

Removes a member. The last owner cannot be removed. Company owners and administrators.

postChange a company member's role (owner)

Promotes or demotes a company member. The last owner cannot be demoted. Company owners and administrators.

postSwitch a team's inherited membership on or off (owner)

Sets whether the company's members are members of one of its teams. Company owners and administrators.

postUpdate a company's details (owner)

Updates the fields named in update_mask. Company owners and administrators.