diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts index 00746004b1..2f87b6fa58 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/users/user-groups/workspace/user-group-workspace.context.ts @@ -70,6 +70,11 @@ export class UmbUserGroupWorkspaceContext await this.repository.save(this.#data.value.id, this.#data.value); } else return; + //TODO: This next user-group section kinda works. But it will overwrite the entire user-group list on the user. + //TODO: instead we need to get all the users by their id's to get their user groups. + //TODO: these user-groups need to be updated together with the new user-group id. + //TODO: or the new user-group id needs to be removed from the existing list. + const userIds = this.#userIds.getValue(); const userGroupIds = [this.#data.getValue()?.id ?? ''];