Storing LitArbi Server’s files in SharePoint, step by step

About 20 minutes, once, for your Microsoft 365 administrator. Afterwards every exhibit file reaches one SharePoint site of your choice — one folder per matter, readable file names — and the lawyers keep working in LitArbi as before.

Updated

Before you start

You need a Global Administrator of your Microsoft 365 (or someone who may grant admin consent and manage SharePoint), an administrator account on your LitArbi Server — version 1.10.2 or later — and the SharePoint site for the files: an existing one or a new one.

Working on your own, without LitArbi Server? Then you need none of the steps below — see Without LitArbi Server: a few clicks in SharePoint and in LitArbi’s Settings.

These are the five things you set up, in this order:

WhatWhat it is for
An app registration “LitArbi Server”The server’s own identity in your Microsoft 365.
The permission Sites.Selected, with admin consentAllows access to the sites you name — and to no other.
A client secretThe server’s password for Microsoft 365.
Write access to one siteThe one place in SharePoint where the server may store files.
The Storage page in LitArbi ServerWhere the four pieces come together, tested before anything switches.

Why this way? Many integrations ask for access to every SharePoint site of the firm (Sites.ReadWrite.All). LitArbi Server asks for one site — not your mailboxes, not OneDrive, not the other sites. That is what Sites.Selected is for, and why step 4 exists.

The lawyers notice nothing. Their LitArbi talks only to LitArbi Server, which passes each file through: access still follows LitArbi’s matter membership, and every view and download is logged.

Step 1 — Register LitArbi Server in Microsoft Entra

  1. Sign in to the Microsoft Entra admin center and open Entra ID ▸ App registrations ▸ New registration.
  2. Name: LitArbi Server. Supported account types: leave Single tenant only. Leave the redirect URI empty and click Register.
Microsoft Entra, Register an application: the name LitArbi Server, Single tenant only and the Register button, each marked
The name (1), “Single tenant only” (2) and Register (3).
  1. The app’s Overview opens. Copy the Application (client) ID and the Directory (tenant) ID into a note — you need both in step 5. Neither is secret.
The app’s overview in Microsoft Entra with the Application (client) ID and the Directory (tenant) ID marked
The two IDs for step 5: the Application (client) ID (1) and the Directory (tenant) ID (2). The values here are samples.

Step 2 — Allow access to selected sites only

  1. In the app open API permissions and click Add a permission.
  2. Choose the large Microsoft Graph tile.
Request API permissions: the Microsoft Graph tile marked; further down a separate SharePoint tile
Microsoft Graph (1) — not the “SharePoint” tile further down. LitArbi Server reaches SharePoint through Microsoft Graph.
  1. Choose Application permissions — the server works without anyone signed in. Type Sites.Selected into the search box, tick Sites.Selected under Sites and click Add permissions.
Microsoft Graph permissions: Application permissions chosen, the search for Sites.Selected, the ticked permission and the Add permissions button
Application permissions (1), the search (2), Sites.Selected (3), Add permissions (4).
  1. Back on API permissions, click Grant admin consent for … (your directory’s name) and confirm with Yes. The Status column turns to a green tick: “Granted for …”.
The app’s API permissions: Add a permission, Grant admin consent and the Sites.Selected row with type Application and status Granted, each marked
Done when Sites.Selected shows type “Application” and a green “Granted” (3). Entra adds User.Read to every new app; LitArbi Server does not use it — leave it or remove it.

Sites.Selected on its own opens no site at all. The one site comes in step 4.

Step 3 — Create the client secret

  1. Open Certificates & secrets ▸ Client secrets ▸ New client secret.
  2. Description: LitArbi Server. Expires: up to 24 months; the suggested 180 days mean renewing twice a year. Click Add.
  3. Copy the Value at once: about 40 characters with a ~ in it. Entra shows it only now — when you come back, it is hidden.
Certificates and secrets: New client secret marked, the Value column marked, the Secret ID crossed out
New client secret (1). Copy the Value (2) — not the Secret ID next to it, which looks like the other IDs and is the most common mistake.

Keep the secret only in the firm’s password manager, never in an e-mail. Put its expiry date in the calendar: before it runs out, create a new secret and enter it in step 5 — the other fields stay as they are.

Step 4 — Give LitArbi Server write access to one site

Sites.Selected needs a second half: the site has to be shared with the app. The admin centers have no button for it; Microsoft’s Graph Explorer does it with two requests in the browser.

4a · Find the site’s ID

  1. Open Graph Explorer and sign in at the top right with your administrator account.
  2. Leave GET and enter https://graph.microsoft.com/v1.0/sites/yourfirm.sharepoint.com:/sites/Litigation — with your site’s host and path, as in the site’s address bar.
  3. Click Run query. Under OK – 200 the answer shows "id": three parts separated by commas. Copy all three, without the quotation marks.
Graph Explorer: the GET request for the site, Run query, OK 200 and the id line of the answer, each marked
The address (1), Run query (2), OK – 200 (3) and the site’s ID (4). The grey “No resource was found matching this query” is only the editor’s hint — what counts is OK – 200.

4b · Let Graph Explorer manage site permissions, once

  1. Graph Explorer itself needs the permission Sites.FullControl.All for the next request. Click the tab Modify permissions and there the link Open the permissions panel.
Graph Explorer: the Modify Permissions tab and its link Open the permissions panel, both marked
Modify permissions (1), then the link “Open the permissions panel” (2). The tab itself lists nothing — the permission is in the panel.
  1. In the panel type Sites.FullControl, open Sites and click Consent; confirm Microsoft’s question with Accept. Graph Explorer then shows “Scope consent successful” — close the panel.
Graph Explorer’s permissions panel filtered for Sites.FullControl, with the Consent button for Sites.FullControl.All
The search (1), the Sites group (2) and Consent (3). Only Graph Explorer receives this permission, and only for you — LitArbi Server never does. Afterwards the button reads “Unconsent” and takes it back.

4c · Share the site with LitArbi Server

  1. Switch the method to POST and enter https://graph.microsoft.com/v1.0/sites/SITE-ID/permissions — the ID from 4a in place of SITE-ID.
  2. Paste this into Request body, with your Application (client) ID from step 1 in place of YOUR-CLIENT-ID:
{
  "roles": ["write"],
  "grantedToIdentities": [{
    "application": {
      "id": "YOUR-CLIENT-ID",
      "displayName": "LitArbi Server"
    }
  }]
}
  1. Click Run query. The answer starts with Created – 201 and contains "roles": ["write"].
Graph Explorer: POST, the permissions address with the site ID, the request body with roles write and the client ID, and Run query
POST (1), the address with the site’s ID (2), the request body (3), Run query (4).

Your IT works with PnP PowerShell? One line does the same: Grant-PnPAzureADAppSitePermission -AppId YOUR-CLIENT-ID -DisplayName "LitArbi Server" -Site https://yourfirm.sharepoint.com/sites/Litigation -Permissions Write

Step 5 — The Storage page in LitArbi Server

In LitArbi Web open Administration ▸ Storage, choose SharePoint (Microsoft 365) and fill in:

FieldEnter
Tenant IDthe Directory (tenant) ID from step 1 — or yourfirm.onmicrosoft.com
Client IDthe Application (client) ID from step 1
Client secretthe Value from step 3
Siteyourfirm.sharepoint.com/sites/Litigation — host and path, without https://
Document libraryempty = the site’s “Documents”; otherwise the name of another library
FolderLitArbi — created by itself

Enter your own LitArbi password to confirm and click Test and save. The server signs in to Microsoft 365, creates the folder, writes a test file and deletes it again; only when all of that works does it switch. The page then says “Saved. New files are now stored in: SharePoint (Microsoft 365).” The secret is stored encrypted on the server.

Files stored before stay where they are and keep opening. Move … files to SharePoint copies them over, each one checked against its fingerprint.

What you find in SharePoint

  • One folder per matter: Client — Matter (ABCDEF12).
  • Each file under its own name plus a short code: Share Purchase Agreement (a1b2c3d4).pdf. Two different files with the same name both stay; the same file twice is stored once.
  • “Modified by: SharePoint App” — that is LitArbi Server.
  • LitArbi never deletes anything in SharePoint: your retention rules apply, also to files deleted in LitArbi.

Whoever has access to the site sees every matter in it — outside LitArbi’s matter membership and its log. Give the site only to the people who should see everything, or to nobody but the administrator.

Without LitArbi Server

A lawyer working on their own keeps the exhibit files in SharePoint all the same — straight from LitArbi, signed in with their own Microsoft 365 account. No app registration, no secret, no server, no OneDrive app. LitArbi 0.9.70 or later.

  1. In LitArbi open Settings ▸ Storage and click Sign In with Microsoft…. Sign in with your Microsoft 365 work account.
  2. Choose Library…: pick the SharePoint site and its document library (usually Documents). Leave Use for new matters ticked; tick Also keep the files of … for the matter that is open.
  3. That is all. LitArbi keeps every exhibit file of the matter in LitArbi ▸ Client — Matter, named by date and title, and a working copy on your Mac. New and changed files go up by themselves; a renamed exhibit renames its copy; nothing is ever deleted in SharePoint.

“Need admin approval”? Some organisations let only IT approve apps. Approval Link for IT… copies a link for them: one click approves LitArbi for the whole organisation. LitArbi never gets more access than you already have in SharePoint.

Prefer a synced folder? Click Sync in the SharePoint library (Microsoft’s OneDrive app keeps it on your Mac) and choose it under Or a synced folder; Nextcloud, Dropbox, Google Drive and iCloud Drive work the same way. Several lawyers on one matter need LitArbi Server — the matter’s records live there, and its files can go to SharePoint as described above.

When something goes wrong

Test and save shows the reason. The usual ones:

Message containsCauseWhat to do
AADSTS7000215The Secret ID was entered instead of the Value — or a typo.Copy the Value again; if it is hidden, create a new secret (step 3).
AADSTS700016The client ID does not exist in this directory.Compare the Application (client) ID and the Tenant ID with step 1.
AADSTS90002The tenant was not found.Use the Directory (tenant) ID from step 1.
HTTP 401Admin consent is missing.Step 2: “Grant admin consent” until the status is green.
HTTP 403The site has not been shared with the app.Step 4 — with the right site ID. A new grant can take a minute.
HTTP 404The site address is wrong.Host and path exactly as in the site’s address bar.
The document library was not foundThe library name differs, e.g. in another language.Leave Document library empty for the site’s default library.
does not let LitArbi Server writeThe grant says “read”.Step 4c with "roles": ["write"].

Frequently asked questions

Why not simply give the app access to all sites?
Because it does not need it. With Sites.Selected, a stolen client secret opens one site, not the firm’s whole SharePoint. It is one extra step (step 4) once.
Can lawyers open the files directly in SharePoint?
Those with access to the site, yes — the files have readable names. LitArbi’s matter membership and download log apply only inside LitArbi, so keep the site to a small group.
What happens when the client secret expires?
Uploads and downloads stop with a sign-in message, nothing is lost. Create a new secret, enter it under Administration ▸ Storage, and everything carries on.
Can we go back to the server’s disk?
Yes, at any time under Administration ▸ Storage. New files then go to the server; files already in SharePoint keep opening from there.
Does LitArbi see our documents?
No. The files go from your LitArbi Server straight to your SharePoint. LitArbi, the company, is not in between.

Sources

Be among the first counsel to use LitArbi.

Beta seats are limited. Reserve yours and we'll let you know the moment your invitation is ready.

No credit card · Free during the beta · macOS and Windows