nextcloud / nextcloud/user_oidc

[Feature Request] Use Regex for attribute mappings

Open
#980 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement
Dominant language
PHP
Stars
181
Forks
60
Avg merge
7h 34m
Merged PRs (30d)
26

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Feature request

Which Nextcloud Version are you currently using: 28.0.11

Is your feature request related to a problem? Please describe.
We are using parts of the email as user name in Nextcloud. It is impossible to extract and map them from our IdP's fields.

Describe the solution you'd like
I would like to choose in the attribute mappings of provider settings, if i want to run the input through a regex.
It could also be used to extract a domain or other infos.

Describe alternatives you've considered
Either the IdP can provide this info in a custom field in the OID profile (our doesn't).
Or another request to the IdP to get more user infos, which would be an OAuth request in our case.

Additional context
UI mockup:
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provider settings attribute-mapping flow and review the linked UI mockup. Clarify the regex syntax, extraction behavior, validation, and matching rules before locating the implementation. Done means regex-based transformation or extraction is available for attribute mappings while existing mappings continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.