AccessDiff for Microsoft 365

Set up AccessDiff for your tenant

For the Tenant plan’s nightly sweep of your SharePoint and OneDrive libraries. A Global Administrator or SharePoint Administrator does this once, in three steps. AccessDiff only ever reads: it never changes, moves or deletes a file. The add-in’s own check needs none of this.

Step 1: give AccessDiff its permission

AccessDiff asks for one Microsoft Graph permission, Sites.Selected (an application permission). On its own it reaches no site at all: AccessDiff can read only the sites you grant it in step 2. A Global Administrator (or a Privileged Role Administrator) gives the consent for the whole tenant; Microsoft shows the permission before you accept, and you can take it back at any time in Microsoft Entra, under Enterprise applications.

The consent link appears here when AccessDiff for Microsoft 365 launches.

Step 2: give AccessDiff read access to each site to check

For each SharePoint site whose libraries AccessDiff should check (a OneDrive is a site too), grant the app read access with one Microsoft Graph request. You can send it from Graph Explorer, signed in as a SharePoint Administrator who is a member of the site, with the Sites.FullControl.All permission that Microsoft’s Create permission page names.

First find the site’s id (replace the host and the site’s path with yours):

GET https://graph.microsoft.com/v1.0/sites/contoso.sharepoint.com:/sites/Clerk?$select=id,webUrl

Then grant read access to that id:

POST https://graph.microsoft.com/v1.0/sites/{site id}/permissions
Content-Type: application/json

{
  "roles": ["read"],
  "grantedToIdentities": [{
    "application": { "id": "00000000-0000-0000-0000-000000000000", "displayName": "AccessDiff for Microsoft 365" }
  }]
}

The site id looks like contoso.sharepoint.com,1b2c…,9f8e…. Keep it for step 3. The sweep checks every document library in each site you grant. To stop AccessDiff reading a site, delete that permission (DELETE /sites/{site id}/permissions/{permission id}).

Step 3: choose what AccessDiff sweeps

Sign in with your Microsoft 365 work account. Anyone in your tenant can see these settings; only a Global Administrator or SharePoint Administrator can change them.

The archive register shows evidence for each condition; it does not decide whether an exception of the Title II rule applies to a file, and nothing here is legal advice.