Using SSO, you can automatically add, remove, or update members' access to spaces by including the spaceId
in the SSO token.
Automatically add members to Spaces
If you’d like to add members to space(s), here’s how you can pass the list of spaces using SSO:
Copy
"spaces": [{ "spaceId": "string", "role": "ADMIN", // or "MEMBER" "action": "JOIN" }] spacesOperation: "ADD"
Here's a sample Payload for when a member is being added to Spaces:
Automatically remove members from Spaces
If you’d like to remove members from space(s), here’s how you can pass the list of spaces using SSO:
Copy
"spaces": [{ "spaceId": "string", "role": "ADMIN", // or "MEMBER" "action": "LEAVE" }]
Here's a sample Payload for when a member is being removed from spaces:Automatically update members' Space access
If you’d like to remove members from all existing spaces and add them to a new list of spaces, here’s how you need to pass the list of spaces using SSO:
Copy
"spaces": [{ "spaceId": "string", "role": "ADMIN", // or "MEMBER" "action": "JOIN" }] spacesOperation: "REPLACE"
Sample Payload for when a member is being removed from all existing spaces and added to a new list of Spaces:To learn more about how to manage Space Membership while using SSO, please visit our Developers Guide here: Passing Spaces in the Token.
Related Topics: