編輯

共用方式為


Customize item insights privacy in Microsoft Graph

Item insights are relationships that Microsoft calculates using advanced machine learning techniques. When users collaborate over documents, SharePoint sites and lists, Teams chats and channels, Microsoft aggregates these activities as signals. From these signals, Microsoft derives insights to make user-centric content recommendations for users in an organization.

Item insights can help users quickly find files that matter to them, such as in the Recommended experience in Office.com and Delve. Users can discover in the Discover area in Outlook Mobile potentially useful content to which they have access but might not have seen before. From personalized insights such as Recent files in a persona card in Bing and Recent in Microsoft 365 apps, users can easily discover their recent files.

These item insights reflect only content to which users have access. No user gets recommendations to content that they can't access.

Note

This article does not address other insight-based experiences in Microsoft 365, such as Viva Insights, the Insights add-in for Outlook, WorkWith feature, MyAnalytics, and Insights dashboard.

Item insights privacy

Item insights privacy settings configure the visibility of insights derived from Microsoft Graph between users and other items (such as documents or sites) in Microsoft 365. You can disable the Delve app via the pre-existing controls, but allow other insights-based experiences to continue to provide assistance.

There are a few ways to customize users' item insights privacy settings:

The rest of this article describes how an administrator can customize item insights privacy in an organization.

Background

At the time of first release in 2014, Office Graph was a backend service for Delve. They shared a set of privacy controls over both the Office Graph insights and the Delve user experience. Office Graph has since become more independent and powerful, as part of every Microsoft 365 experience and of Microsoft Graph. To offer a coherent Microsoft Graph schema, Microsoft introduced an itemInsights entity, which inherits all the properties of the pre-existing officeGraphInsights resource, and has kept officeGraphInsights around for backward compatibility. The introduction of itemInsights also decouples the privacy story for the two independent pieces.

Although existing apps can continue to use officeGraphInsights, they should upgrade to itemInsights to gain the flexibility to fine-tune item insights in Office Graph and Delve.

How to customize item insights in an organization

Item insights settings provide flexibility for administrators to use Microsoft Entra tools. Administrators can disable item insights for an entire organization, or for only members of a specified Microsoft Entra group. They can configure item insights in the Microsoft 365 admin center, or by using the PowerShell SDK or Microsoft Graph REST API with due permissions. Keep in mind that the global administrator role is required.

The next section describes how to use the admin center to configure item insights settings and is followed by the section about PowerShell cmdlets. If you're using the REST API, skip the next two sections and continue with Configure item insights settings using the REST API. For more information, see the read or update REST operations.

Configure item insights settings via Microsoft 365 admin center

An administrator with the global administrator role can tune item insights privacy settings via toggles for an organization or group. To change privacy settings for item insights in the Microsoft 365 admin center, expand Settings, select Search & intelligence, then select Configurations. In the Item insights tile, choose Change.

admincenter_toggleoverview

Then toggle item insights for your organization, or enable it or disable it for specific groups.

admincenter_toggledetails

Configure item insights settings via PowerShell

Confirm the following additional prerequisites. Then you can use the Microsoft Graph PowerShell SDK to set item insights for an entire organization or for specific groups.

Additional prerequisites

Command examples

To get item insights configuration for an organization, use the Microsoft Graph PowerShell module and the following command, where you replace $TenantId with your Microsoft Entra tenant ID. You can retrieve this ID from the overview page of your Microsoft Entra ID.

   Get-MgOrganizationSettingItemInsight -OrganizationId $TenantId

By default, item insights are enabled for the entire organization. You can use the Microsoft Graph PowerShell module to change that and disable item insights for everyone in the organization.

Note

The update method requires additional User.ReadWrite.All permissions. To create a Microsoft Graph session with a specific required scope, use the following command and consent to requested permissions.

   Connect-MgGraph -Scopes "User.Read.All","User.ReadWrite.All"

Use the following command, where you replace $TenantId with your Microsoft Entra tenant ID and specify -IsEnabledInOrganization as false.

   Update-MgOrganizationSettingItemInsight -OrganizationId $TenantId -IsEnabledInOrganization:$false

Alternatively, you can change the default and disable item insights for a specific Microsoft Entra group. Use the following command, where you replace $TenantId with your Microsoft Entra tenant ID, and $GroupID with the Microsoft Entra group ID.

   Update-MgOrganizationSettingItemInsight -OrganizationId $TenantId -DisabledForGroup $GroupId

Configure item insights settings using the REST API

Because item insights privacy settings are enabled for the entire organization, they're exposed through a navigation property named itemInsights in peopleAdminSettings. You can change the default in one of two ways:

  • Disable item insights for all users in the organization, by setting the isEnabledInOrganization property of the insightsSettings resource to false.
  • Disable item insights for a subset of users, by assigning these users in a Microsoft Entra group, and setting the disabledForGroup property to the ID of that group. Find out more about creating a group and adding users as members.

Use the update operation to set the isEnabledInOrganization and disabledForGroup properties accordingly.

How item insights are enabled isEnabledInOrganization disabledForGroup
Entire organization (default) true empty
Disabled for a subset of users in the organization true ID of the Microsoft Entra group that contains the subset of users
Disabled for the entire organization false ignored

Keep the following points in mind when updating item insights settings:

  • Get the ID of a Microsoft Entra group from the Microsoft Entra admin center, and make sure the group exists, because the update operation doesn't check the existence of the group. Specifying a nonexistent group in disabledForGroup doesn't_ disable insights for any users in the organization.
  • Regardless of item insights settings, Delve continues to respect Delve tenant and user level privacy settings.

Behavior changes in UI and APIs

For a full list of experiences affected when disabling item insights, see Overview of item insights.

Transition period

To accommodate configuring item insights settings, through the end of 2020, Microsoft 365 respects both Delve settings and item insights settings, and enforces the stricter of the two if they differ. This means that a user is considered as opted out of item insights if the user opted out by either Delve controls or item insights settings.

After this transition period, Delve settings control only the Delve experience, and item insights settings affect only Microsoft Graph item insights. Make sure to configure item insights according to your organization's requirements.

Note

During the transition period, due to technical reasons, the SharePoint start page may provide stale suggestions if an organization disables item insights for all users. This issue will be addressed in upcoming server-side changes.

Learn more about Delve and using Delve feature settings to control documents showing up in the Discover feed: