Forum Discussion
Update / Modify Users Phone information on Exchange Online (PowerShell)
Hey dgr4it
Thanks for Sharing this is interesting !
So it appears that MS has moved a few attributes from set-user to set-msoluser, like for example 'phonenumber' and 'mobilephone' i was able to change via Set-msoluser post connecting to Msolservice (connect-msolservice). However 'set-user' still works for other attributes which are not available in Set-Msoluser, for example -HomePhone and -OtherTelephone are still available to be updated via Set-User. It appears that -Phonenumber and -Mobilephone were conflicting atrributes between set-user and set-msoluser and now they are available only with Msoluser.
Sorry no documentation found.
Thanks
- dgr4itMay 11, 2021Iron Contributor
harveer singh Thanks for your input.
I know you can go through the https://docs.microsoft.com/en-us/powershell/azure/active-directory/overview?view=azureadps-1.0 module, (or I guess https://docs.microsoft.com/en-us/powershell/azure/active-directory/overview?view=azureadps-2.0 of it), but that also requires new admin roles permissions, scripting, testing, etc.
What I'm trying to figure out is:
- Whether there is a way around this limitation (make it work in Exchange)
- Whether Microsoft has issued any notice for this change which is impacting our work-flows (out of curiosity, since I guess it won't help me much to know).
- harveer singhMay 11, 2021Iron Contributor
Hey dgr4it
AFIK Set-user is the only exchange command which would allow you to make the desired change, What is interesting though is I was able to update the phone number/mobile phone number via the new Exchange admin center https://admin.exchange.microsoft.com/ using an Exchange Admin account (worked for me; please test in your tenant). So theoretically it looks like the attributes are still available for update via exchange. May be for the time being you can use the new Exchange admin center to make the changes and get a ticket going with MS to confirm the changes around set-user. Lets see if Vasil can find something.
Thanks