nextcloud-oidc-login icon indicating copy to clipboard operation
nextcloud-oidc-login copied to clipboard

Configure a Group that gets mapped to nextcloud admin group

Open Changer90 opened this issue 1 year ago • 1 comments

Hi all,

I had the problem, that I wanted to set a group in my OIDC Configuration that should be mapped to the nextcloud admin group. Therefore I made some changes to the LoginService.php.

Perhaps these changes can be merged or help anyone else with the same problem.

See the commits here: https://github.com/pulsejet/nextcloud-oidc-login/compare/master...Changer90:nextcloud-oidc-login:master

Best regards Changer

Changer90 avatar Mar 20 '23 14:03 Changer90

I wanted to do the same thing but also overlooked this phrase in the readme:

The attributes in the OIDC response are flattened by adding the nested array key as the prefix and an underscore.

This means that you can achieve the same result by setting is_admin => 'groups_yourAdminGroup' :smile:

cyl3x avatar Mar 31 '23 19:03 cyl3x