Configurare l'accesso a livello di utente (cmdlet obsoleti)Configure access at the user level (old cmdlets)
Ruolo: Amministratori di Office 365Role: Office 365 admins
Note
In questo argomento viene descritto l'utilizzo dei cmdlet di PowerShell Get-UserAnalyticsConfig e set-UserAnalyticsConfig.This topic describes the use of the PowerShell cmdlets Get-UserAnalyticsConfig and Set-UserAnalyticsConfig. Entro il 25 gennaio 2021, questi cmdlet verranno ritirati e sostituiti rispettivamente dai nuovi cmdlet Get-MyAnalyticsFeatureConfig e set-MyAnalyticsFeatureConfig.By January 25, 2021, these cmdlets will be retired, and replaced by the new cmdlets Get-MyAnalyticsFeatureConfig and Set-MyAnalyticsFeatureConfig, respectively. Assicurarsi di aggiornare il flusso di lavoro e gli script per utilizzare i nuovi cmdlet (come descritto in Configure Analytics) entro tale data.Please be sure to update your workflow and scripts to use the new cmdlets (as described in Configure MyAnalytics) by that date.
È possibile configurare l'accesso di analisi per i singoli utenti dell'organizzazione.You can configure MyAnalytics access for individual users in your organization. Ad esempio, è possibile escludere completamente l'utente, che disattiverebbe tutte le funzionalità di analisi per l'utente.For example, you could opt-out the user completely, which would turn off all MyAnalytics functionality for that user. Tuttavia, l'utente può scegliere di tornare indietro.However, the user can choose to opt back in.
È possibile configurare l'analisi tramite l'impostazione del parametro PrivacyMode .You configure MyAnalytics by setting the PrivacyMode parameter. Per informazioni sui valori di PrivacyMode, vedere impostazioni di configurazione dell'utente.For information about the values of PrivacyMode, see User configuration settings.
Impostazioni di configurazione dell'utenteUser configuration settings
Parametro PrivacyModePrivacyMode parameter | Utente con licenzaLicensed user | Utente senza licenzaUnlicensed user |
---|---|---|
Opt-in (impostazione predefinita)Opt-in (default setting) |
|
|
Opt-outOpt-out |
|
|
Important
Il valore escluso di PrivacyMode è in fase di ritirata.The Excluded value of PrivacyMode is being retired. Gli utenti la cui modalità di privacy è stata precedentemente impostata su esclusi saranno ora impostati su opt-out.Users whose privacy mode was previously set to Excluded will now be set to Opt-out.
Impostare l'accesso di analisi per un utenteSet MyAnalytics access for one user
Configurare le impostazioni di accesso di analisi per un utente con il cmdlet di PowerShell seguente:Configure MyAnalytics access settings for a user with the following PowerShell cmdlet:
Set-UserAnalyticsConfig –Identity <string> [PrivacyMode <string[]>]
ParametroParameter | ObbligatorioRequired | DescrizioneDescription | Valore predefinitoDefault value |
---|---|---|---|
IdentitàIdentity | SìYes | ID utente per l'utente corrente memorizzato in Azure Active Directory (AAD)User ID for the current user as stored in Azure Active Directory (AAD) | -- |
PrivacyModePrivacyMode | SìYes |
|
Opt-inOpt-in |
Important
Il valore escluso di PrivacyMode è in fase di ritirata.The Excluded value of PrivacyMode is being retired. Gli utenti la cui modalità di privacy è stata precedentemente impostata su esclusi saranno ora impostati su opt-out.Users whose privacy mode was previously set to Excluded will now be set to Opt-out.
Verificare l'accesso di analisi per un utenteConfirm MyAnalytics access for a user
Utilizzare la seguente procedura per confermare se un utente ha accesso a Analytics (il valore per PrivacyMode):Use the following to confirm if a user has access to MyAnalytics (the value for PrivacyMode):
Get-UserAnalyticsConfig –Identity <string>
ParametroParameter | ObbligatorioRequired | DescrizioneDescription | Valore predefinitoDefault value |
---|---|---|---|
IdentitàIdentity | SìYes | ID utente per l'utente corrente memorizzato in AADUser ID for the current user as stored in AAD | - |
Impostare l'accesso di analisi per più utentiSet MyAnalytics access for multiple users
Utilizzare la procedura seguente nel modulo di Exchange Online PowerShell V2 per modificare l'accesso a Analytics (il valore di PrivacyMode) per più utenti eseguendo uno script di PowerShell che consente di scorrere gli utenti, cambiando il valore di un utente alla volta.Use the following steps in the Exchange Online PowerShell V2 module to change access to MyAnalytics (the value of PrivacyMode) for multiple users by running a PowerShell script that iterates through the users, changing the value one user at a time.
Creare un file di testo con valori delimitati da virgole (con estensione CSV) che contenga il campo UserPrincipalName degli utenti che si desidera configurare.Create a comma-separated value (.csv) text file that contains the UserPrincipalName field of the users you want to configure. Ad esempio:For example:
UserPrincipalName ClaudeL@contoso.onmicrosoft.com LynneB@contoso.onmicrosoft.com ShawnM@contoso.onmicrosoft.com
Specificare il percorso del file CSV di input, il file di output. csv e il valore di PrivacyMode che si desidera impostare per ogni utente:Specify the location of the input .csv file, the output .csv file, and the value of PrivacyMode that you want to set for each user:
$inFileName="<path and file name of the input .csv file that contains the users, example: C:\admin\Users2License..csv>" $outFileName="<path and file name of the output .csv file that records the results, example: C:\admin\Users2License-Done..csv>" $privacyMode = "Opt-in" $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 }
Eseguire i comandi risultanti dal prompt dei comandi di Exchange Online PowerShell V2 Module.Run the resulting commands at the Exchange Online PowerShell V2 module command prompt. Per ulteriori informazioni sul modulo, vedere modulo di Exchange Online PowerShell V2.For more information about the module, see Exchange Online PowerShell V2 module.
Lo script di PowerShell:This PowerShell script:
- Visualizza il nome dell'entità utente per ogni utente.Displays the user principal name for each user.
- Imposta la modalità di privacy specificata per ogni utente.Sets the specified privacy mode for each user.
- Crea un file con estensione CSV con tutti gli utenti che sono stati elaborati e visualizza il relativo stato.Creates a .csv file with all the users that were processed and shows their status.