Skip to content
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

update-mguser encoding issues with displayname #3158

Open
halukpn opened this issue Feb 21, 2025 · 0 comments
Open

update-mguser encoding issues with displayname #3158

halukpn opened this issue Feb 21, 2025 · 0 comments
Assignees
Labels
Bug - P1 type:bug A broken experience

Comments

@halukpn
Copy link

halukpn commented Feb 21, 2025

Describe the bug

I am trying to use the command:
Update-MgUser -UserID $id -DisplayName ""
To set display name for users. The displayname text is not encoded correctly.
For example:
Update-MgUser -UserID $id -DisplayName "11 & 22"
Display name ends up as: 11 u0026 22
And so on for other characters.
Also:
Update-MgUser -UserID $id -DisplayName "Ernst"
ends up as: Est (for some reason rn next to each other are always removed from a string)

I've tried escaping, quotes etc and nothing helps.

PowerShell 7.5 on Windows, in vscode or Windows terminal, same issue.

Expected behavior

Should be able to handle normal characters.

How to reproduce

Update-MgUser -UserID $id -DisplayName "11 & 22"
Update-MgUser -UserID $id -DisplayName "Ernst

SDK Version

2.26.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
@halukpn halukpn added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Feb 21, 2025
@timayabi2020 timayabi2020 self-assigned this Feb 21, 2025
@timayabi2020 timayabi2020 added Bug - P1 and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug - P1 type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

2 participants