Set-UserAnalyticsConfig

This cmdlet is available only in the cloud-based service.

Note: This cmdlet has been replaced by the Set-MyAnalyticsFeatureConfig cmdlet in the Exchange Online PowerShell V2 module version 2.0.4 or later. For connection instructions using the module, see Connect to Exchange Online PowerShell.

Use the Set-UserAnalyticsConfig cmdlet to modify the MyAnalytics privacy settings for cloud-based users.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

Syntax

Set-UserAnalyticsConfig
   -Identity <RecipientIdParameter>
   -PrivacyMode <String>
   [<CommonParameters>]

Description

You need to be assigned permissions before you can run this cmdlet. Although this topic lists all parameters for the cmdlet, you may not have access to some parameters if they're not included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet.

Examples

Example 1

Set-UserAnalyticsConfig -Identity "Kathleen Reiter" -PrivacyMode Opt-In

This example sets the MyAnalytics privacy setting to Opt-In for the user named Kathleen Reiter.

Parameters

-Identity

The Identity parameter specifies the user that you want to modify. You can use any value that uniquely identifies the user. For example: For example:

  • Name
  • Alias
  • Distinguished name (DN)
  • Canonical DN
  • Email address
  • GUID
Type:RecipientIdParameter
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:Exchange Online
-PrivacyMode

The PrivacyMode parameter specifies the MyAnalytics privacy setting for the user. Valid values are:

  • Excluded
  • Opt-In
  • Opt-Out
Type:String
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:Exchange Online

Inputs

Outputs