This workflow can be used for creating private spaces in the given team. This Workflow can be deployed as a schedule.
When workflow is started, team members are retrieved for the given team. If team members don't have spaces, a new Space is created by the name of the team member and the team member is assigned as the only user of the space.
Also if desired, the spaces of the missing members can be deleted with the option: Delete spaces of removed users. If this parameter is enabled, spaces that doesn't match with the team members will be deleted.
Logs of the data app is stored in the logs folder in the workflow area by the date of the run. Log data is appended if the log file exists.
For API authentication, Secret Store is used. Please create an Application Password for a Global Admin User and create a Secret in the team with this ID and Password. Then please select the secret in the Secret Retriever node in the workflow locally.
When running locally, please add the HUB API endpoint URL in the "HUB API Endpoint Used When Running Locally" node.
Two options needs to be set before running:
Team Name: Name of the team where all the personal spaces are going to be hosted. Spaces will be created for this team member.
Delete spaces of removed users: If selected, spaces without an owner will be deleted.