API for adding users to workspaces
Hello,
I see that workspace provides some commands to add users to workspace-related groups.
I wonder, is this needed, or could I use the core user API for this?https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/instruction_set_for_users.html#add-user-to-group
This assumes that the group name is always 'SPACE-U-' . $workspaceId or 'SPACE-GE-' . $workspaceId.
I see there is /api/group/addUser/{spaceId}, but it seems to do more than what we would usually want.
Hi @donquixote
Yes, technically, you can add a user in a group via the Nextcloud's API/Rest.
But, the difference between the API/Rest and ours, it's we add the user to the WorkspaceManager group if you add him to the SPACE-GE-<workspaceId> group.
This step is very important for Workspace to work.