How to Prevent Specific Microsoft 365 Users from Changing Their Profile Photo

How to Prevent Specific Microsoft 365 Users from Changing Their Profile Photo

Preventing Microsoft 365 users from changing their profile photos can be important for complying with company policies or maintaining a specific brand identity. In this post, I’ll show you step-by-step how to restrict certain users from changing their photos in Exchange Online.

Steps to Follow:

1. Create a New OWA Mailbox Policy

First, you need to create a new OWA (Outlook Web App) mailbox policy that will restrict photo changes. Use the following PowerShell command to do this:

New-OwaMailboxPolicy -Name "RestrictedPhotoPolicy"

This command creates a new OWA mailbox policy named “RestrictedPhotoPolicy”.

2. Disable the Photo Change Feature

Next, disable the photo change feature in the policy you created using the following command:

Set-OwaMailboxPolicy -Identity "RestrictedPhotoPolicy" -SetPhotoEnabled $false

This command disables the photo change feature under the “RestrictedPhotoPolicy”.

3. Assign the Policy to a Specific User

Finally, you need to assign this policy to a specific user. Use the following command to do so:

Set-CASMailbox -Identity mail@tayfuntech.com -OwaMailboxPolicy "RestrictedPhotoPolicy"

This command assigns the “RestrictedPhotoPolicy” to the user mail@tayfuntech.com, preventing them from changing their profile photo.

Conclusion

By following the steps above, you can effectively prevent certain users in your Microsoft 365 environment from changing their profile photos. This method helps you maintain your company policies without negatively impacting user experience.

I hope this guide has been helpful! Feel free to leave a comment if you need more information or assistance.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply