-
Notifications
You must be signed in to change notification settings - Fork 76
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
SAML groups not fully compatible with Group-folders app #833
Comments
Groups are intentionally deleted by the SAML backend when they have no member anymore: https://github.com/nextcloud/user_saml/blob/master/lib/GroupManager.php#L165-L171 |
Thank you for reply @blizzz , Thanks |
On the operational side, keep a ghost user inside. Code-wise, I am tending towards a config flag to keep empty groups and check that setting before deleting them. Perhaps it would be sufficient to have this configurable via CLI only.
Yes, that could be an bug report in the server repository. |
Hi there We also faced this issue and therefore added a config option as a pull request to prevent the removal of a group if @blizzz could you review it? |
For the record, done last week :) |
Thanks, yes i saw it and i am on it to improve it accordingly, just could not find the time to get it done. |
Hi,
I'm not sure if it's a problem of Nextlcloud Server or
user_saml
app orgroupfolders
app, but perhaps you could help me to identify that at least. Thanks!Steps to reproduce
Bob
to groupgroup-A
in your IDP (In my case: Keycloak)Bob
to Nextcloudgroup-A
is now visible for Admins in my-nextcloud.com/index.php/settings/usersgroup-A
in my-nextcloud.com/index.php/settings/admin/groupfolders , let's call itgroup-A-folder
Alice
add them to groupgroup-A
in IDP , but do not login with this user yet.Bob
from groupgroup-A
Bob
group-A
is no longer visible for Admins in my-nextcloud.com/index.php/settings/users , because last active user doesn't belong to it anymore (?)group-A-folder
is still there, but asgroup-A
is missing - it's assigned to "None" of the groupsAlice
and confirm that user can't seegroup-A-folder
Expected behaviour
Groups should be preserved even if last active member has left the group.
Actual behaviour
Groups are dropped as soon as last active member doesn't belong to the group anymore, that breaks compatibility with
groupfolders
app, even though 'External storage' (my-nextcloud.com/index.php/settings/admin/externalstorages) is preserving those groupsServer configuration
Operating system:
Ubuntu 22.04.2 LTS
Web server:
Apache
Database:
Mariadb
PHP version:
8.1
Nextcloud version:
28.0.4
List of activated apps:
The text was updated successfully, but these errors were encountered: