Updating email address for SharePoint online users if they’re a Live / Microsoft Account…
If you have a SharePoint online ()365) site, and you invite users that logon with a “Microsoft Account”, those users won’t be able to receive email. Things such as alerts won’t work.
However, you can run the code below and it will parse out all users that are