Open jo-krk opened 7 months ago
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 ,
Could you please suggest solution for situation I described in 'Steps to reproduce' , when user is pre-created but not really used yet ? I don't see how authors of groupfolders
can address it, if group is really deleted from everywhere. And I'm even more surprised how 'External storage' kept this information about the groups, even after deletion?
Thanks
Could you please suggest solution for situation I described in 'Steps to reproduce' , when user is pre-created but not really used yet ?
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.
And I'm even more surprised how 'External storage' kept this information about the groups, even after deletion?
Yes, that could be an bug report in the server repository.
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: