Teams

In Cerby, teams are groups of users created to facilitate sharing items, updating roles on items, and provisioning user accounts in seat-based and paid social apps. A team object contains information about the team name, the team type, and the workspace ID.

A team object is created in Cerby when you perform any of the following actions:

  • Create a group assignment in your identity provider (IdP), such as Okta and Azure AD, to automatically create a team in Cerby via SCIM.

  • Create a self-managed team in Cerby with workspace users.

With the Cerby API, you can retrieve all teams or specific teams by providing their ID. To learn more about teams, refer to the Teamsarrow-up-right article collection on the Cerby Help Center.

Important: You can only retrieve teams if you have the workspace Admin, Super Admin, or Owner role. Your permissions are determined by your API key based on Cerby’s RBAC system.

List teams

get

With a GET request to the /teams endpoint, you can retrieve the list of all the teams in your workspace.

Important: The API scope required to use this endpoint is: Users data.

Query parameters
page[number]integer · min: 1Optional

The page number to retrieve in the paginated list.

Default: 1
page[size]integer · min: 1 · max: 100Optional

The number of items to return per page.

Default: 25
Responses
chevron-right
200

OK

application/json
get
/teams

Create a team

post

With a POST request to the /teams endpoint, you can create a team in your workspace by providing the team name.

Important: The API scope required to use this endpoint is Write teams.

Body
Responses
post
/teams

Retrieve a Cerby-managed team by ID

get

With a GET request to the /teams/{id} endpoint, you can retrieve the information of a team by providing its ID.

Important: The API scope required to use this endpoint is: Users data.

Path parameters
idstring · uuidOptional

The unique identifier of the team.

Responses
chevron-right
200

OK

application/json
get
/teams/{id}

Delete a team

delete

With a DELETE request to the /teams/{id} endpoint, you can delete a Cerby-managed team by providing its ID.

Important: The API scope required to use this endpoint is Delete teams.

Path parameters
idstringRequired

The unique identifier of the team.

Responses
delete
/teams/{id}

No content

Update a team

patch

With a PATCH request to the /teams/{id} endpoint, you can update the name of a Cerby-managed team by providing its ID.

Important: The API scope required to use this endpoint is Write teams.

Path parameters
idstringRequired

The unique identifier of the team.

Body
Responses
chevron-right
200

OK — The updated team JSON object.

application/json
patch
/teams/{id}

Add members to a team

post

With a POST request to the /teams/{id}/members endpoint, you can add one or more members to a team by providing the team ID and the user IDs.

Important: The API scope required to use this endpoint is Write teams.

Path parameters
idstringRequired

The unique identifier of the team.

Body
Responses
chevron-right
200

OK.

No content

post
/teams/{id}/members

No content

Last updated