Update Platform
Set the email domains, guest access, automatic accounts, and group-to-role mappings for Teams or Slack sign-in.
Path
The platform: microsoft (Teams) or slack.
Headers
Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See Organizations.
Body
The full list of email domains that may sign in.
True to create MindCloud accounts for new people from those domains.
The default role for new people, from List Roles.
True to let tenant or workspace guests sign in.
The full list of group-to-role mappings.
groupIdstringrequiredThe directory group id.
roleIdstringrequiredThe role it grants (List Roles).
The role for people in no mapped group, or null to refuse them.
Response fields
idstringThe platform: microsoft (Teams) or slack.
microsoftslack
isConnectedbooleanTrue once a workspace or tenant was connected in Cirra. Connecting proves ownership of it, so it is done in Cirra, not through the API.
directoryIdstringThe connected Slack workspace or Microsoft tenant id.
directoryNamestringIts name.
allowedEmailDomainsarray of stringEmail domains whose people may sign in through the platform. Consumer domains such as gmail.com are refused.
autoCreateUsersbooleanTrue when people from those domains who have no MindCloud account get one when they first sign in.
defaultRoleIdstringThe role new people get when no group mapping applies and no unmapped role is set (List Roles).
allowGuestsbooleanTrue when guests of the tenant or workspace may sign in.
roleMappingsarray of objectsWhich directory group grants which role. The first group a person is in decides.
groupIdstringThe directory group id.
roleIdstringThe role it grants (List Roles).
unmappedRoleIdstringThe role for someone in none of the mapped groups. Null: they are refused.