pulsejet / nextcloud-oidc-login

Nextcloud login via a single OpenID Connect 1.0 provider
https://apps.nextcloud.com/apps/oidc_login
GNU Affero General Public License v3.0
219 stars 59 forks source link

Add the "manager" attribute to list of possible mapped keys. #252

Open kuche1991 opened 9 months ago

kuche1991 commented 9 months ago

Hi,

i would like to map more attributes from my keycloak server. In my case it's the "manager" attribute which allows you to build an organigram of the organization in nextcloud. I have seen that it would be trivial to add in https://github.com/pulsejet/nextcloud-oidc-login/blob/master/lib/Service/AttributeMap.php Any thoughts about that change? If you are spare on time, I can write a Pull-Request and implement it myself, if that matches your preferred process.

Thanks for this awesome plugin, kind regards,

kuche

pulsejet commented 9 months ago

What does this attribute map to? As far as I'm aware there's no "manager" attribute on the Nextcloud User.

kuche1991 commented 9 months ago

Actually looked a little into it.

This documentation does not list anything about it https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/instruction_set_for_users.html

but the admin manual has. https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/user_configuration.html

Since the latest nextcloud release it can be configured by Administrators next to the quota config. I still don't know if this is a User Attribute, or something saved somewhere else, since I had no time looking into the database.

pulsejet commented 9 months ago

No idea. But if this is a core feature available at least in Nextcloud 26, then go for a PR