user_oidc icon indicating copy to clipboard operation
user_oidc copied to clipboard

Allow to add custom mapping from group names from oidc provider to nextcloud

Open CarlSchwan opened this issue 7 months ago • 3 comments

Feature request

Which Nextcloud Version are you currently using: (see administration page)

Is your feature request related to a problem? Please describe.

Allow to add custom mapping from group names from oidc provider to nextcloud while keeping the access rules the same as before

This is mostly to be able to move the server from my association from the social_login app to user_oidc which had this feature and so that the migration can be as transparent as possible

Describe the solution you'd like

This is that we have there which maps access to certain gitlab suborganization to group ids with the sociallogin app.

groupMapping":{"sysadmin":"admin","teams\/kde-developers":"KDE Developers","teams\/kde-ev-board":"KDE e.V Board","teams\/akademy":"Akademy Team","teams\/kde-brazil":"KDE Brazil Members","teams\/kde-espana-board":"KDE Espana Board","teams\/kde-ev-fundraising":"KDE e.V. Fundraising WG","teams\/kde-ev":"KDE e.V Members","teams\/promo":"Promo Team","teams\/vdg":"Visual Design Group","teams\/gcompris-contributors":"GCompris Educators","teams\/community-wg":"Community Working Group","teams\/mentor-programs":"Mentor Program Members","teams\/german-environment-agency-projects":"German Environment Agency Projects","teams\/kde-eco-collaborators":"KDE Eco Collaborators"}

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

CarlSchwan avatar Apr 24 '26 12:04 CarlSchwan

Not sure I get what would be the change. Would this prevent/allow some user to authenticate in NC based on their mapped OIDC group attribute?

julien-nc avatar Apr 28 '26 11:04 julien-nc

Hi, Is it possible, to configure the user_oidc App in the following way: Use provider name as prepended String for the UserID, but leave group Names as they are, without prepending the provider name? As far as I see, it's only possible to prepend the Provider Name in both, the UserID and the Group Names, or leave it in both cases.

Benny7623 avatar May 20 '26 10:05 Benny7623

Hint: I'm using the App oidc_groups_mapping for this case. Also see my Feature Request: https://github.com/nextcloud/user_oidc/issues/1442#issue-4492793539

Benny7623 avatar May 21 '26 07:05 Benny7623