Set up Microsoft 365
Wield connects to your Microsoft 365 tenant to import CVs directly from SharePoint or OneDrive.
Prerequisites
- Microsoft 365 tenant with Global Admin or Application Admin role.
- Access to the Azure Portal.
1. Create the app registration
- Azure Portal → Microsoft Entra ID → App registrations → New registration.
- Name:
Wield Recruitment. - Supported account types: Accounts in this organizational directory only (Single tenant).
- Redirect URI:
Webwith valuehttps://app.wield.ch/api/adapters/m365/oauth/callback. - Register.
Take note of the Application (client) ID and Directory (tenant) ID.
2. Configure API permissions
Under API permissions → Add a permission → Microsoft Graph → Delegated permissions:
| Permission | Purpose |
|---|---|
Files.Read.All |
Read SharePoint/OneDrive files |
Sites.Read.All |
List sites |
User.Read |
User identity |
offline_access |
Refresh-token rotation |
Then Grant admin consent for [Tenant].
3. Generate a client secret
- Certificates & secrets → New client secret.
- Description:
Wield production, expiry: 24 months. - Copy the Value (not the secret ID) — shown only once.
4. Connect inside Wield
- Settings → Adapters → Microsoft 365 → Connect.
- Paste tenant ID, client ID, client secret.
- Click Authorize — you'll be redirected to Microsoft and returned with an active connection.
Security & storage
- Refresh tokens are stored encrypted in the database (AES-256-GCM, per-tenant key).
- Client secrets never leave your tenant record.
- On
invalid_grant, the adapter card triggers re-consent automatically.
Common errors
AADSTS50011: reply URL mismatch— verify the redirect URI exactly, including scheme and path.Insufficient privileges— admin consent not granted; repeat step 2.invalid_client— wrong or expired secret; regenerate in Azure.