workspace icon indicating copy to clipboard operation
workspace copied to clipboard

API for adding users to workspaces

Open donquixote opened this issue 2 years ago • 1 comments

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.

donquixote avatar Jan 25 '23 17:01 donquixote

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.

zak39 avatar Aug 04 '23 11:08 zak39