Changing user settings or profile information
Name changes, office moves, password reset requests, and other updates are frequent requests from users. An admin must be able to make these updates quickly and easily within a system. While it is possible to accomplish these tasks within the tenant user interface, having the ability to script these changes (or even automate them) is the dream of any admin. This recipe covers several possibilities for making updates to a user's settings or profile information via PowerShell.
Getting ready
Using the skills learned in the Setting up the PowerShell environment recipe from Chapter 1, Office 365 Setup and Basic Administration, connect to your Office 365 tenant via PowerShell.
The UserPrincipalName
parameter is a required parameter to identify which user should be impacted by the change you are making.
How to do it…
The following two examples are PowerShell snippets that show how to make user updates.
Use this...