We want to use the user principal name from EntraAD synced with OIDC.
In general we have a working oidc authentification. Now we want one attribute more in the profile the upn.
First I edited the XWiki.XWikiUsers with the class editor and added userPrincipalName: String. But here is the next step I fail. Where can I edit in general what is shown in the profile? I had a first look at XWiki.XWikiUserSheet but didn’t find a way.
Next steps I guess is the mapping from oidc to this XWiki.XWikiUsers upn attribute. Some first hints how to achieve this?
If you mean just listing a custom property in the user profile, you can configure that in the administration (User Profile section in the wiki administration).
If what you mean is more changing the display name of the user, right now it’s hardcoded to FirtName LastName and if there is no first name and no last name provided then the profile page name is displayed. You can customize the page name using oidc.user.nameFormater in xwiki.properties.
I’m not fully sure what you mean, but the mapping is configured in oidc.user.mapping in xwiki.properties. In your case I guess it should be something like:
I totally forgot the user profile section in the administration.
The mapping part will be tested. (I can’t edit the xwiki.properties myself and have to wait for response.)
Some side question: I added password:password to the user profile in a “please admin only” section because we do have very few special users not authenticated by oidc. This label now says “Kennwort” as this will be the german translation. What is the exact translation key? I wanted to change it locally to “Passwort für Spezialuser (Du hast kein Passwort)” - something like “Password for special users (you do not have a password)”.