mirror of
https://github.com/KelvinTegelaar/CIPP.git
synced 2026-04-25 08:16:01 +03:00
[GH-ISSUE #3477] When editing a User, the username field shows an alias rather than the primary username #1573
Labels
No labels
API
Feature
NotABug
NotABug
Planned
Sponsor Priority
Sponsor Priority
bug
documentation
duplicate
enhancement
needs more info
no-activity
no-priority
not-assigned
pull-request
react-conversion
react-conversion
roadmap
security
stale
unconfirmed-by-user
unconfirmed-by-user
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/CIPP#1573
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @incedIT on GitHub (Jan 27, 2025).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/3477
Description
Identity Management, Users, Edit a user. The email address printed in blue under the display name is correct, but the editable username field shows an alias rather than the primary username on the account. If I manually change this field to the correct value and save, it succeeds but the username reverts to the alias. This is cosmetic only, on the View User tab the User Principal Name is correct.
I have encountered this twice now, once with a user where I used CIPP to change the primary username, and now with a user where several years ago (before using CIPP) the primary username was changed in M365 Admin.
Environment data
@github-actions[bot] commented on GitHub (Jan 27, 2025):
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!".
@incedIT commented on GitHub (Jan 27, 2025):
I confirm that I have checked the documentation thoroughly and believe this to be an actual bug.
@incedIT commented on GitHub (Jan 28, 2025):
"I confirm that I have checked the documentation thoroughly and believe this to be an actual bug."
@matt-novus commented on GitHub (Jan 28, 2025):
Hey IncedIT, we had this issue as well a few years ago and it turns out to be this issue here:
https://learn.microsoft.com/en-us/microsoft-365/troubleshoot/miscellaneous/reports-show-anonymous-user-name
If that is indeed what's causing your issue, then that can be resolved by implementing the first standard listed on this page https://docs.cipp.app/user-documentation/tenant/standards/list-standards/global-standards
Enable Usernames instead of pseudo anonymised names in reports
Microsoft announced some APIs and reports no longer return names, to comply with compliance and legal requirements in specific countries. This proves an issue for a lot of MSPs because those reports are often helpful for engineers. This standard applies a setting that shows usernames in those API calls / reports.
Update-MgBetaAdminReportSetting -BodyParameter @{displayConcealedNames = $true} AnonReportDisable
@incedIT commented on GitHub (Jan 29, 2025):
Thanks for the info. Unfortunately, I already have display concealed user, group and site names disabled in M365 admin, so that isn't the cause in this case.