Microsoft Entra ID (Identity)
A Microsoft Entra ID data source reads your company's Entra directory (formerly Azure AD) through Microsoft Graph. It is read-only: DataDios never changes anything in the directory.
With it you can:
- Browse the directory in the Explorer: groups with their members and owners, users with the groups they belong to, applications with who they are assigned to, and directory roles with their members.
- See people in the Catalog: each user and group becomes an account, linked to the groups it belongs to and, where it matches, to the DataDios user who is the same person.
- Give roles from group names with group mappings.
- Track identity changes: who joined or left a group, who got a directory role, new app secrets, accounts created or disabled, and who made each change.
- Chart sign-ins from the directory's sign-in logs in Performance Analyzer.
Group.Read.All is required: without it nothing is read. Each other permission turns on its own feature; leaving one out turns off only that feature. One exception: without User.Read.All, groups and applications have no owner in the Catalog, because owners are users.
Prerequisites
In the Azure portal, in your company's directory:
- Register an application (Microsoft Entra ID → App registrations → New registration). Note its Application (client) ID and Directory (tenant) ID.
- Add a client secret (Certificates & secrets → New client secret) and copy its value. Note when it expires.
- Add the permissions you need (API permissions → Add a permission → Microsoft Graph → Application permissions), then click Grant admin consent for your directory. Granting needs a Global Administrator or Privileged Role Administrator.
| Permission | What it turns on | Needed |
|---|---|---|
Group.Read.All | Groups, their members and owners; group mappings | Yes |
User.Read.All | Users and their details | For users |
Application.Read.All | Applications and who they are assigned to; in group mappings, which groups are not assigned to the DataDios sign-in app | For applications |
RoleManagement.Read.Directory | Directory roles (for example Global Administrator) and their members | For directory roles |
AuditLog.Read.All | Sign-in metrics; who made each identity change | For sign-in metrics and change authors |
All are application permissions and read-only. You don't need Directory.Read.All.
Sign-in metrics also need Microsoft Entra ID P1 or P2 on the directory: Microsoft keeps sign-in logs only on those plans.
Create the data source
- Open the Data Sources tab and click + CREATE SOURCE.
- In the data source type list, expand Identity and select Microsoft Entra ID.
- Fill in:
- tenant_id: the Directory (tenant) ID (required). It must be the directory your people sign in with.
- client_id: the Application (client) ID (required).
- client_secret: the client secret (required, stored encrypted).
- Save and test. The test reads one group; if it fails, the message says whether the secret was refused or
Group.Read.Allis missing.
What you see in the Explorer
The source lists four kinds of objects. Opening the data source shows one row per kind, with how many there are; open a kind to list its objects, then open one to see its details on the Metadata tab and its contents on the Data Preview tab.
| Object | Metadata | Data Preview |
|---|---|---|
| GROUP | Name, type (Security, Microsoft 365, Distribution), description, mail, created, visibility, membership rule for a dynamic group, whether it is synced from on-premises, number of direct members. Tabs for its owners and the groups it belongs to (member of). | Its direct members: name, sign-in name or mail, type (user, group, service principal), whether the account is enabled |
| USER | Name, sign-in name (UPN), mail, Member or Guest, enabled, department, job title, company, office, created, whether it is synced from on-premises. A member of tab lists its groups and directory roles, including through nested groups. | The user's details as one row |
| APPLICATION | Name, application (client) ID, description, sign-in audience, publisher domain, created, notes. Tabs for its owners and its app roles. | Who the application is assigned to: users, groups and service principals |
| DIRECTORY ROLE | Name, description, role template ID. Only roles that are in use in the directory are listed. | The role's members |
Refresh the source to pick up changes made in Entra.
People in the Catalog
When the source is scanned, each user and group becomes an account in the Catalog:
- A user's member of lists the groups it belongs to directly. A group's member of lists the groups it is nested in, so nested membership is read by following the chain.
- A group's or an application's owner is one of its owners in Entra.
- A disabled user's account status is Locked.
- A user is linked to the DataDios user who is the same person: first the DataDios user who signs in with that Microsoft account in the same directory, otherwise by the user's mail (or sign-in name when it has no mail). A mail that two DataDios users share links neither. Manage → Identity & access → Source accounts shows these links as By scan.
Applications and directory roles are not people, so they don't become accounts. Directory roles have no owner, so they don't count against owner coverage.
If a read of the members or owners fails, that scan sends no links at all and the Catalog keeps the links it had, so a partial read never removes a real link. A group whose members the app may not read (hidden membership) or that was deleted during the scan is skipped.
Identity drift
DataDios can record what changes in the directory over time, in identity terms rather than as metadata versions.
Turning it on
- Edit the data source and open the Drift tab.
- Turn on drift tracking and pick how often it runs (hourly is a good start).
- Save.
The first run stores the directory as it is and reports nothing: existing members and admins are not shown as new. Changes are reported from the next run.
What is tracked
| Kind | Changes |
|---|---|
| Accounts | User or group created, disabled, enabled, deleted or renamed |
| Group membership | A user or group added to or removed from a group (direct membership) |
| Owners | An owner added to or removed from a group or an application |
| Directory roles | A role granted to or removed from a user, group or app, at any scope |
| App roles | An app role added, removed, enabled or disabled |
| Credentials | A client secret or certificate added or removed. Only its label and end date are kept, never the secret |
| App assignments | A user or group assigned to or removed from an application |
| Objects | An application created or deleted |
Each change has a severity. High: a privileged directory role granted (Microsoft marks which roles are privileged), a secret or certificate added, an owner added to an application. Low: renames, name and description changes, app role changes, a changed credential. Everything else is Medium.
Where you see it
- The source's Drift tab lists every change, newest first, with when it was seen, who made it, what changed and on which object. Filter by kind; open a row to see before and after values.
- A user's, group's or application's History tab lists that object's changes only.
- Who made it comes from the directory's audit log and needs
AuditLog.Read.All. Without it, or when no matching audit record is found, the change says Not recorded. When the audit log could not be read, the drift run's message says Who made the changes: not read.
Alerts
On the Drift tab, click the bell icon (hover over it to see its name, Create identity alert) and pick what to watch: a privileged role granted, a secret or certificate added, owner changes, group membership, directory roles, account changes, app assignments, any high-severity change, or any change. An alert fires once per run that recorded a matching change, and only for runs after it was created. Its detail lists the changes and who made them.
How it reads the directory
The first run and one run a day read the whole directory. The other runs read only what changed since the last run, so they stay quick on a large directory. Role assignments, app roles, credentials and app assignments are read whole on every run.
Sign-in metrics
DataDios can chart sign-ins from the directory's sign-in logs in Performance Analyzer. It needs AuditLog.Read.All and Entra ID P1 or P2.
Turning it on
- Edit the data source and open the Workload tab.
- Turn on Enable workload analysis and keep the Entra Sign-ins metric group checked.
- Save.
Full steps, including schedules: Enabling Workload Analysis. If the permission or the licence is missing, or the sign-in logs can't be checked, a message says so when you save, and each hourly extraction fails rather than storing an empty hour.
What is collected
Every hour, DataDios counts the sign-ins by app, outcome (success or failure) and error code.
Only these counts are stored. DataDios doesn't keep who signed in, from which IP address or from where.
The dashboard shows sign-ins by outcome, failed sign-ins by error code, and sign-ins by app. Microsoft documents what each error code means in its sign-in error code reference.
Limits
- A directory with more than about 50,000 groups, 50,000 users or 50,000 applications, or a group with more than about 50,000 members, can't be read in full; the read fails rather than stopping part way, and the Catalog keeps what it had. If users can't be read, the scan says why.
- A group's Data Preview reads its members up to the page you open, so a later page of a large group opens more slowly.
- A window with more than about 1,000,000 sign-ins fails its extraction rather than storing part of it.
- A sign-in that reaches Microsoft's sign-in log more than about 10 minutes late is not counted, so the latest hour can read slightly low.
- Identity drift sees the state at each run: a change made and undone between two runs is not recorded.
- A deleted object leaves the Catalog at the next daily full read; the Drift tab shows the deletion at the run that saw it.
- Audit records can reach the log a few minutes late, so the next run looks again for a change that had no author. A change's author stays missing when its record arrives after that run too; Microsoft keeps audit records for 7 days on Entra ID Free and 30 days on P1 or P2.
- When the client secret expires, every read fails. Group mappings keep the last copy of the groups and show the error. Add a new secret to the data source to fix it.