OIDC Regex removed NC admin group.
-
So, apparently the sync between OIDC groups and NC groups is broken. The NC group "admin" is nowhere to be seen within Nextcloud web UI and all users belonging to this group have lost their admin rights within Nextcloud.
How do I restore admin rights for accounts that exist both as OICD and NC?
I am locked out of administrative configuration within Nextcloud. As well as every other admin user.I suppose that the OIDC regex expression might be a problem here. I can not edit it though, since I have no admin rights anymore.
Please help.
-
Never mind but if you happen to get yourself into a similar situation, do the following in the Nextcloud app's terminal:
sudo -u www-data php -f /app/code/occ group:adduser admin <username-of-existing-account-to-be-admin> -n
This way the native Nextcloud group "Administrators" reappears and the account is granted admin rights.
-
-
@jdaviescoates Yep, I read about it and it made sense. Problem was that I could not even get to the NC OIDC app config due to missing admin rights. thankfully the occ command made the native admin group reappear.
From a logical point of view provisioning admin rights to a certain OICD group should be an option.
This could be a field in the OIDC plugin where we could define a group name that is treated as admin and grants native NC admin rights to users within.
-
B BrutalBirdie referenced this topic