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

[FIX] #3569 Fixed fetching Azure AD User with apostrophe in UPN #3570

Merged
merged 3 commits into from
Nov 16, 2023

Conversation

danielcecil
Copy link
Contributor

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes (#3569)

What is in this Pull Request ?

Added a String.Replace function to the Identity parameter on GetAzureADUser.cs to replace single apostrophe's with doubles. e.g. John.O'[email protected] becomes John.O''[email protected] as a result.

This ensures the apostrophes are correctly escapes. Note that UrlEncode does not achieve this fix.

@KoenZomers
Copy link
Collaborator

Thanks @danielcecil for your contribution! I have moved this fix to a lower level so two other cmdlets which ran into the same issue can also benefit from it.

@KoenZomers KoenZomers merged commit 997f857 into pnp:dev Nov 16, 2023
1 check passed
@danielcecil
Copy link
Contributor Author

Nice work! Thanks for looking a bit deeper 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants