Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API for adding users to workspaces #688

Open
donquixote opened this issue Jan 25, 2023 · 1 comment
Open

API for adding users to workspaces #688

donquixote opened this issue Jan 25, 2023 · 1 comment
Assignees
Labels

Comments

@donquixote
Copy link

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.

@zak39
Copy link
Collaborator

zak39 commented Aug 4, 2023

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 zak39 self-assigned this Aug 4, 2023
@zak39 zak39 added the question label Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants