Dokumentációs menü

Csatlakoztatott meghajtók Microsoft 365-telAz Ivy beállításától függ

This guide connects a Microsoft 365 tenant to Ivy, so space admins can link the SharePoint document libraries you select to their spaces. Everyone in a space then uses its libraries through Ivy’s app access; nobody connects their own Microsoft account, and Ivy stores no personal Microsoft tokens. Read Connected drives first for how mounts behave.

You need:

  • an Ivy organisation owner or admin;
  • a Microsoft Entra ID Global Administrator or Privileged Role Administrator for the admin consent, because Ivy asks for an application permission on Microsoft Graph;
  • someone who can manage the SharePoint sites you want to use (a SharePoint Administrator, or the admin who gave consent).

If you run Ivy yourself, register your own app first: Connected drives on your own installation.

What Ivy asks for, and why

Ivy cloud has one multi-tenant app in Microsoft Entra ID, named Ivy. It asks for one Microsoft Graph permission:

Permission Type Who uses it Why
Sites.Selected Application every mount, for everyone in the space, and flows and API keys Reach only the sites you grant one by one (step 2). By itself it grants access to nothing.

Ivy asks for no delegated permissions: nobody signs in to Microsoft for Ivy, and no person’s token is ever used or stored. With Sites.Selected, everyone in a space that mounts a library reaches it through Ivy, whatever their own SharePoint permissions: link a library only to spaces whose members may all see it. Ivy never asks for Sites.Read.All, Sites.FullControl.All, Files.ReadWrite.All, Directory.* or Mail.*.

  1. In Ivy, open Settings → Connected drives, select Microsoft 365 and turn it on. Ivy asks you to confirm your identity again.
  2. Ivy sends you to Microsoft’s admin consent page. Sign in with the Global Administrator or Privileged Role Administrator account of your tenant (or forward the page to them; it shows the same request).
  3. Microsoft lists the permissions above. Review them and select Accept.
  4. Microsoft sends you back to Ivy, which asks you to sign in to your tenant once more. This sign-in only proves which tenant gave consent: it grants Ivy nothing, and Ivy keeps nothing of it. Sign in with the same Global Administrator or Privileged Role Administrator account of your tenant, not a guest account.
  5. Ivy records your tenant ID, and Microsoft 365 now shows On.

Until consent is accepted, the provider shows Waiting for admin consent, and Ivy can’t reach SharePoint. Ivy’s app tokens are issued for the tenant that gave consent only, so Ivy can reach no other tenant’s sites.

Accepting creates an enterprise application named Ivy in your tenant (Entra admin center → Identity → Applications → Enterprise applications). Its Permissions page shows what you consented to.

2. Grant Ivy access to selected sites

Ivy reaches SharePoint with its Sites.Selected permission, which reaches only the sites you grant here. Grant write on each site whose libraries spaces should use, before you select it in Ivy: Ivy can only find a site it has been granted.

You need the site’s ID and the Ivy app’s application (client) ID, which Ivy shows in Settings → Connected drives → Microsoft 365 → Service access.

With Microsoft Graph

The caller needs Sites.FullControl.All (for example in Graph Explorer, signed in as a SharePoint Administrator who consented to it).

  1. Find the site ID:

    GET https://graph.microsoft.com/v1.0/sites/contoso.sharepoint.com:/sites/Legal

    The response’s id looks like contoso.sharepoint.com,1f2e…,9a8b….

  2. Grant Ivy write access to the site:

    POST https://graph.microsoft.com/v1.0/sites/{site-id}/permissions
    Content-Type: application/json
    
    {
      "roles": ["write"],
      "grantedToIdentities": [
        {
          "application": {
            "id": "<Ivy application (client) ID>",
            "displayName": "Ivy"
          }
        }
      ]
    }

    GET https://graph.microsoft.com/v1.0/sites/{site-id}/permissions lists the grants on a site.

With PnP PowerShell

Connect-PnPOnline -Url https://contoso-admin.sharepoint.com -Interactive -ClientId <your PnP app ID>
Grant-PnPAzureADAppSitePermission -AppId <Ivy application (client) ID> -DisplayName "Ivy" `
  -Site https://contoso.sharepoint.com/sites/Legal -Permissions Write

Recent PnP PowerShell versions also call this command Grant-PnPEntraIDAppSitePermission. Get-PnPAzureADAppSitePermission -Site … lists the grants on a site.

3. Select the libraries in Ivy

  1. In Ivy, open Settings → Connected drives → Microsoft 365 → Service access and select Add drive (Ivy asks you to confirm your identity again).
  2. Enter the site’s address, for example https://contoso.sharepoint.com/sites/Legal. Ivy looks it up with its app access, so you don’t sign in to Microsoft for this.
  3. Ivy lists the site’s document libraries. Select one or more.

If Ivy can’t reach the site (service_access_missing), it hasn’t been granted yet (step 2), or it belongs to another tenant. An address that isn’t a SharePoint site answers invalid_address. Ivy keeps checking its access to each selected library and shows Access granted, or Access missing if the grant was removed later.

Only selected libraries are reachable, even if more sites were granted in Microsoft. OneDrive can’t be selected: a OneDrive belongs to one person, not to a space.

4. Space admins add the libraries

A space admin opens the space’s files, selects Connected drive in the Files toolbar and picks one of the selected libraries, or a folder in it. Everyone in the space can then use it, with what their space role allows. Nobody needs a Microsoft account for that.

A library that isn’t selected answers 422 drive_not_selected. If you later remove a library from Service access, its folders stay in the spaces but show “An organisation admin needs to give Ivy access to this drive again” and no contents.

Conditional Access and sign-in policies

Ivy uses only app-only tokens for your tenant, so Conditional Access policies for users don’t apply to connected drives; Ivy’s space roles decide who uses them. Conditional Access for workload identities (which needs Microsoft Entra Workload ID) can restrict app-only tokens by location; if you use it, ask us for Ivy cloud’s outbound IP addresses to add as a named location.

Revoking access

  • One person in a space: remove them from the space in Ivy, or deactivate them (SCIM does this for you). Mounts don’t depend on their Microsoft account, so disabling them only in Entra ID doesn’t end their access through Ivy.
  • A library: remove it in Ivy’s Service access, which stops every mount of it at once, and delete the grant in Microsoft (DELETE https://graph.microsoft.com/v1.0/sites/{site-id}/permissions/{permission-id}, or Revoke-PnPAzureADAppSitePermission).
  • The whole organisation: turn Microsoft 365 off in Settings → Connected drives, which stops every mount at once and deletes every scanned copy. Then, in the Entra admin center, open Enterprise applications → Ivy → Properties and select Delete, or set Enabled for users to sign in? to No to keep the consent record.

Troubleshooting

  • Consent ends with an error about admin approval: the account isn’t a Global Administrator or Privileged Role Administrator, or your tenant requires an admin consent workflow. Forward the consent page to an admin.
  • not_tenant_admin after admin consent: the account that signed in after consent has neither the Global Administrator nor the Privileged Role Administrator role. Sign in with one that does.
  • wrong_tenant after admin consent: the sign-in after consent was to another tenant, or with a guest account, or consent was given in a different tenant from the one Ivy already recorded for your organisation. Start again and sign in with an account of the tenant that gave consent.
  • A mount shows “An organisation admin needs to give Ivy access to this drive again”: its library was removed from Service access. Select it again (step 3).
  • Ivy can’t find a site (service_access_missing): the site wasn’t granted (step 2), or it belongs to another tenant.
  • Service access shows Access missing: the grant was removed, or it was granted read instead of write.
  • A library with required check-out, retention labels or holds can refuse saves or deletes; Ivy shows Microsoft’s refusal. Files with sensitivity labels that encrypt them can’t be scanned and answer file_scan_failed.