My Analytics Opt-in | Opt-out

MyAnalytics provides insights into two of the key factors in personal productivity: how people spend their time and who they spend it with. You and your team can get these benefits after an administrator sets up MyAnalytics within your organization.

Even Microsoft has already designed My Analytics to support customers’ needs to comply with GDPR requirement but there could be exceptional request from your compliance team to enable or disable this service for certain region of employee’s.

I got a similar requirement to enable privacy mode “Opt-out” for employee located in a particular country which is falling under compliance where analytics service should not be enabled default. To do it, i have to set “Opt-out” options enable for all users and let them have capability to do “Opt-in” when they need. you need to run below cmdlets for group of users.

$inFileName=”” $outFileName=”” $privacyMode = “Opt-out” $users=Import-Csv $inFileName ForEach ($user in $users) { $user.Userprincipalname $upn=$user.UserPrincipalName Set-UserAnalyticsConfig –Identity $upn -PrivacyMode $privacyMode Get-UserAnalyticsConfig –Identity $upn | Export-Csv $outFileName }

Use the Exchange Online PowerShell V2 module to run above command.

How employees can opt-in and opt-out

Users can opt-in or opt-out of the elements of MyAnalytics by using the Settings > Feature settings menu in Office 365, as shown below.

Opt out and opt in

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

Up ↑

Eine Tolle Reise

Here, you all will come to know about me, about my life and of course some common issues these days!!

Office 365 for IT Pros

The only always up-to-date eBook about the Microsoft 365 cloud Office system, covering Exchange Online, SharePoint Online, OneDrive for Business, Microsoft Teams, Planner, Azure Active Directory, and more

Chirag Patel MVP MCT

Microsoft 365 Specialist

All about Microsoft 365 & Teams

lEt's eNaBle MoDeRn WoRkPlAcE ! News

The latest news on and the WordPress community.

%d bloggers like this: