Skip to content

Instantly share code, notes, and snippets.

@ca0abinary
Created December 6, 2021 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ca0abinary/901bf07e4e2e3ec4e991aa5321b63dc7 to your computer and use it in GitHub Desktop.
Save ca0abinary/901bf07e4e2e3ec4e991aa5321b63dc7 to your computer and use it in GitHub Desktop.
Convert UPN
Import-Module MSOnline
Connect-MsolService
$upn = "delete-me@geniuscentral.com"
Set-MsolUserPrincipalName -UserPrincipalName $upn -NewUserPrincipalName $upn.Replace("geniuscentral","geniuscentral.onmicrosoft")
add to
https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/GroupDetailsMenuBlade/Members/groupId/d3992f53-022d-4e63-84a7-0d38b0731011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment