-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config Support for usgin UPN rather than Object ID #441
Comments
This would be an ideal update. If there are any pointers to check, I'd be happy to look at developing a MR |
Not sure what pointers to check. Could you please elaborate? |
Based on: https://learn.microsoft.com/en-us/azure/active-directory-b2c/user-profile-attributes Please check with the below attribute: |
bear in mind that you don't actually get the UPN in the id_token by default you would have to modify the manifest to enable it from reading: but it would be possible to add an option to do this. |
It would be very helpful for an Admin to just input the e-mail in Jenkins when adding the users. |
Facing the same issue, We tried adding additional Claim of
|
Why do you say that it should be the email address? |
@timja There are two things that we are currently looking at.
I am not sure if uuid is the solution for Azure Ad Plugin in Jenkins. Please let us know your thoughts so we can understand and implement our automation accordingly. Thanks in advance for quick response. |
UPN should not be used according to Microsoft:
It may be possible to allow lookup via 'username' for API calls as I think that's all people mostly want this for. see also https://openid.net/specs/openid-connect-core-1_0.html#ClaimStability and MicrosoftDocs/azure-docs#14498 |
Make sense. @timja Thanks for the clarification. |
@timja I understand the need in the backend for unique identification. However with the latest version of the plugin users showing up as hash instead of UPN or email. Is it possible that once authentication completed we can resolve the objectID to UPN or email? can it be configurable? |
where are they showing up as a hash? |
Hi, I work with @ibidani. What Idan meant is the Jenkins User ID is showing up as Azure Object ID with latest version of plugin. We are on latest LTS(2.440.3) version of jenkins with azure ad plugin version 385.v5d9f88612dd2. Please find the screenshot below. Question, Is there any way to update the Jenkins User ID to UPN instead of objectID? is it configurable in any way ? |
Not currently, why do you need that? |
What feature do you want to see added?
Problem: With the new version of the plugin, Jenkins Users are being created with their Object ID from Azure rather than UPN.
This is causing problems for all the integrated systems where api calls are being made. Also making JCASC configuration less user friendly.
Reques:
Please add an configuration option to the plugin configuration where users can choose to use UPN for Jenkins User IDs.
For example a checkbox on the configuration page of the plugin.
"Use UPN for Jenkins ID"
Thanks in advance.
Upstream changes
No response
The text was updated successfully, but these errors were encountered: