nextcloud / nextcloud/user_oidc
[Feature Request] Use Regex for attribute mappings
Nobody has claimed this yet.
- 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:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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