[GH-ISSUE #2188] Modify User loads wrong username, replaces with alias #1125

Closed
opened 2026-03-02 13:41:48 +03:00 by kerem · 3 comments
Owner

Originally created by @JeremyMcM on GitHub (Feb 29, 2024).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2188

Description

1.) Load a user /identity/administration/users/edit, 2.) Compare username to Microsoft Admin center.

In some situations, an email alias is loaded into the username field instead of the user's login username. If a change to the user account is made, in my situation a license was added, when the Edit User button is pressed to save the change, the user's login username is also changed in Microsoft.
Login Changed

Environment data

Sponsored
Backend version: 5.2.1
Frontend version: 5.2.1
Tenant Cache Cleared: true
Token Cach Cleared: true
Originally created by @JeremyMcM on GitHub (Feb 29, 2024). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2188 ### Description 1.) Load a user /identity/administration/users/edit, 2.) Compare username to Microsoft Admin center. In some situations, an email alias is loaded into the username field instead of the user's login username. If a change to the user account is made, in my situation a license was added, when the Edit User button is pressed to save the change, the user's login username is also changed in Microsoft. ![Login Changed](https://github.com/KelvinTegelaar/CIPP/assets/93686819/eedf4fb9-1308-4f24-bf7e-6548229280e2) ### Environment data ```PowerShell Sponsored Backend version: 5.2.1 Frontend version: 5.2.1 Tenant Cache Cleared: true Token Cach Cleared: true ```
kerem 2026-03-02 13:41:48 +03:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 29, 2024):

Thank you for creating a bug. Please make sure your bug is indeed a unique case by checking current and past issues, and reading the complete documentation at https://docs.cipp.app/
If your bug is a known documentation issue, it will be closed without notice by a contributor. To confirm that this is not a bug found in the documentation, please copy and paste the following comment: "I confirm that I have checked the documentation thoroughly and believe this to be an actual bug."

Without confirming, your report will be closed in 24 hours. If you'd like this bug to be assigned to you, please comment "I would like to work on this please!".

<!-- gh-comment-id:1971732889 --> @github-actions[bot] commented on GitHub (Feb 29, 2024): Thank you for creating a bug. Please make sure your bug is indeed a unique case by checking current and past issues, and reading the complete documentation at https://docs.cipp.app/ If your bug is a known documentation issue, it will be closed without notice by a contributor. To confirm that this is not a bug found in the documentation, please copy and paste the following comment: "I confirm that I have checked the documentation thoroughly and believe this to be an actual bug." Without confirming, your report will be closed in 24 hours. If you'd like this bug to be assigned to you, please comment "I would like to work on this please!".
Author
Owner

@JeremyMcM commented on GitHub (Feb 29, 2024):

I confirm that I have checked the documentation thoroughly and believe this to be an actual bug.

<!-- gh-comment-id:1971743462 --> @JeremyMcM commented on GitHub (Feb 29, 2024): I confirm that I have checked the documentation thoroughly and believe this to be an actual bug.
Author
Owner

@KelvinTegelaar commented on GitHub (Feb 29, 2024):

Not a bug; Microsoft no longer supports having a different username than the primary SMTP address. If you must have a differencve between the two, you must setup ADFS with alternate login ID

image

This would happen in any Graph portal, and is not unique to CIPP.

<!-- gh-comment-id:1971745160 --> @KelvinTegelaar commented on GitHub (Feb 29, 2024): Not a bug; Microsoft no longer supports having a different username than the primary SMTP address. If you **must** have a differencve between the two, you **must** setup ADFS with alternate login ID ![image](https://github.com/KelvinTegelaar/CIPP/assets/49186168/6ac943b1-635e-495d-8680-fcc10bfa69fe) This would happen in any Graph portal, and is not unique to CIPP.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#1125
No description provided.