Set-UserAnalyticsConfig

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

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

Note: We recommend that you use the Exchange Online PowerShell V2 module to connect to Exchange Online PowerShell. For instructions, see Connect to Exchange Online PowerShell.

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

Syntax

Set-UserAnalyticsConfig
   -Identity <RecipientIdParameter>
   -PrivacyMode <String>
   [<CommonParameters>]
Set-UserAnalyticsConfig
   -Identity <RecipientIdParameter>
   -TeamAnalyticsEnabled <Boolean>
   [-PrivacyMode <String>]
   [-TeamAnalyticsManagerViewEnabled <Boolean>]
   [<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 OptIn

This example sets the MyAnalytics privacy setting to OptIn 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
-TeamAnalyticsEnabled

PARAMVALUE: Boolean

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online
-TeamAnalyticsManagerViewEnabled

PARAMVALUE: Boolean

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Exchange Online

Inputs

Outputs