Directory sync with Microsoft Entra ID
Keep your people, teams and logins in step with Microsoft Entra ID (formerly Azure AD). You choose which directory groups are in scope; Certavue reads them on a schedule and updates its records to match. It never writes to your directory.
You manage the sync under Settings, Directory, Directory sync and Settings, Directory, Directory groups. Administrators only.
What the sync can do
Three things, each switched on separately:
- People. Everyone in a selected group becomes a person in Certavue, with their name, email, job title and phone kept up to date. Someone who leaves every selected group, or whose directory account is disabled, is marked as left (or only noted, your choice).
- Teams. A selected group can become a team that mirrors the group exactly: members added by hand are removed on the next run. You can turn every selected group into a team, only groups whose name matches a pattern, or pick group by group. Group owners can become team leaders.
- Logins. People in scope can be given a login so they sign in with Sign in with Microsoft straight away, as viewers. Either everyone synced, or only members of the groups you tick. Roles stay under your control. Guest accounts never receive a login.
Connecting
- Open Settings, Directory, Directory sync.
- Choose the app registration. Use Certavue's registration is the quick route: sign in as an administrator of your tenant and grant consent. If your IT team must own the registration, choose Use our own app registration and enter its application (client) id, directory (tenant) id and a client secret; the card lists the redirect URI and permissions the registration needs.
- Press Connect to Microsoft Entra ID and sign in. The connection shows who signed in, the tenant and when access was last refreshed.
The sign-in is stored encrypted and refreshed silently. If it can no longer be refreshed (for example the secret expired or consent was withdrawn) the card shows Needs attention with the reason; press Sign in again. Disconnect removes the stored sign-in and stops the schedule; your people, teams and settings are kept.
What the consent prompt asks (Certavue's registration)
When you press Connect with Use Certavue's registration, Microsoft shows a consent screen for the Certavue Directory Sync application. It asks for permission, on behalf of the signed-in account, to:
- read all users' full profiles (
User.Read.All), - read all groups and their members (
Group.Read.All,GroupMember.Read.All), - keep access after you close the browser (
offline_access), and sign you in and read your basic profile (openid,profile,email).
These are delegated permissions: Certavue only ever acts as the administrator who connected, and only reads. Because they cover the whole directory, Microsoft requires an administrator to consent. Sign in with an account that holds Global Administrator, Privileged Role Administrator or Cloud Application Administrator, and tick Consent on behalf of your organization so other administrators can re-link later without a new prompt. If your tenant routes consent through an approval workflow, the request will appear in the Entra admin center under Enterprise applications, Admin consent requests; connect again once it is approved.
To withdraw access later, an administrator removes the enterprise application Certavue Directory Sync under Enterprise applications in the Entra admin center, or disconnects in Certavue.
Creating your own app registration (IT team)
Choose this when policy requires your organisation to own the registration. You need an account that can create app registrations and grant admin consent in your tenant.
- In the Microsoft Entra admin center go to Identity, Applications, App registrations and choose New registration.
- Name it, for example
Certavue Directory Sync. Supported account types: Accounts in this organizational directory only (single tenant). - Under Redirect URI choose platform Web and paste the URI shown on the connection card in Certavue (it ends in
/api/directory-sync/oauth/callback). Register. - From the Overview page copy the Application (client) ID and the Directory (tenant) ID.
- Open API permissions, choose Add a permission, Microsoft Graph, Delegated permissions, and add
User.Read.All,Group.Read.All,GroupMember.Read.All,offline_access,openid,profileandemail. Do not add Application permissions; Certavue does not use them. Then press Grant admin consent for <your organisation> and confirm. - Open Certificates & secrets, choose New client secret, give it a description and an expiry your policy allows, and copy the Value immediately (it is shown only once). Diarise the expiry.
- Back in Certavue on Settings, Directory, Directory sync, choose Use our own app registration, enter the client id, tenant id and secret, and press Connect to Microsoft Entra ID. Sign in with an administrator of the same tenant.
When the secret is about to expire: create a new secret in the registration, then enter it on the connection card in Certavue (the stored one is replaced and the link is kept). Delete the old secret afterwards. Changing the client id itself, or moving to a different registration, breaks the link and asks you to connect again.
Optional hardening your IT team may apply to the registration: restrict who can sign in by assigning the enterprise application to the administrators who will connect (Enterprise applications, Properties, Assignment required), and set a Conditional Access policy on it. Certavue needs nothing else.
Choosing groups and rules
On Settings, Directory, Directory groups:
- Selected groups. Search your security groups and add them. Use Preview members on any group to see who would be synced and who would be skipped, with the reason.
- Becomes a team. Per group: follow the rule, Yes, or No. Give a team name if the group name is not the one you want.
- Login. When the login policy is Members of designated groups, tick the groups whose members may sign in.
- Who is synced. Skip guest accounts (on by default), include members of nested groups, and optionally limit to certain email domains.
- People who leave the groups. Note it, or mark the person as left. Disabled directory accounts are always marked as left. Administrators are never removed by the sync.
- Removal guard. If a run would mark more than this share of managed people as left, it stops and asks you to confirm. It protects you from a group being emptied by mistake.
Save with the bar at the top of the page.
Running
Back on Directory sync:
- Preview reads the directory and plans every change without applying anything. Open the run to see what would happen.
- Run now applies the changes. One run at a time.
- Schedule runs automatically: hourly, every 6 or 12 hours, daily, weekly or a custom interval, anchored at a time of day in UTC. The exact minute is staggered per company.
Every run is listed with what it changed. Open a run for the stage-by-stage view, the notes (skipped users and why, teams created or expired, logins granted or removed) and the per-person detail. Every change a run makes also appears under Settings, Audit, Activity with the channel Directory sync, filtered by run.
If a run fails, its page shows where it stopped: the stages before are done, the stage it failed in is marked failed with the reason, and the later stages did not start. Runs that failed before this was recorded show their stages as not confirmed.
Good to know
- Matching is by directory identity first, then email, so people you already have are updated rather than duplicated.
- The identity email is the user principal name. If someone already has a login and their directory email changes, the account email is left alone and the run notes it.
- People stay editable; the next run overwrites what the directory owns. Teams derived from groups are locked: rename or disband the group in the directory instead, or remove directory ownership.
- Remove directory ownership (on the connection card, after disconnecting) turns managed people and teams back into ordinary records and clears the run history. It cannot be undone, but nothing is deleted.
- Plan limits still apply: if adding people would exceed your plan, those rows fail with a note and everything else proceeds.
See also: Importing data for spreadsheet imports, and Access and user roles for what viewers can do.