Automatic creation of space per group of users

Hey there,
I'm trying to create a flow in my application that upon a new group in my application I will create a space, a security role with permissions to space and adjust the user permissions to have that role.

However, I thought maybe there is a more elegant way of doing so, maybe using the user's metadata to specify the allowed spaces (example: "my-space-{metadata.group_name}"

Does anyone know if there is a good way of achieving that feature?

I think the best way to do this would be to use the Create Space API to create a new space when one is created in your application:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.