Microsoft Entra ID
Microsoft Entra ID manages workforce identities, groups, applications and directory roles. Owlie syncs users, groups, service principals, app roles, directory roles, role permissions, administrative-unit scopes, group membership, role assignments, PIM eligibility and application owners. It provisions users and can write five kinds of access relationships.
Capabilities
| Capability | Supported | Details |
|---|---|---|
| Sync | Yes | Users, groups, service principals, app roles, directory roles and permissions, administrative units, memberships, assignments, PIM eligibility and owners. |
| Incremental sync | No | Each entity uses paged full-list operations. |
| Account provisioning | Yes | Create, update, disable, enable and revoke Entra users. |
| Grant writes | Yes | Group membership, app-role assignment, application permission, directory-role assignment and application owner. |
| Notifications | No | |
| Custom operations | No |
Authentication
Choose Client Credentials to connect with an app registration in your Entra tenant. The connector uses application permissions with the Graph .default scope. You own and configure the app registration, and Owlie stores its client secret as a secret.
Get credentials from Microsoft Entra ID
- In the Microsoft Entra admin center, open Identity > Applications > App registrations, then select New registration. Register an app for accounts in this organizational directory.
- Copy the Directory (tenant) ID and Application (client) ID from the app registration's Overview page.
- Open Certificates & secrets, create a client secret, and copy its value before leaving the page.
- Open API permissions, select Add a permission > Microsoft Graph > Application permissions, and add the permissions for the features you will use. Select Grant admin consent for the tenant.
The connector requests https://graph.microsoft.com/.default. Microsoft Entra places the individual application permissions on the app registration and includes the admin-consented permissions in the token. Start with sync permissions and add write permissions only for the features you enable.
| Feature | Microsoft Graph application permissions |
|---|---|
| User, group, membership, service-principal, app-role and directory-role sync | User.Read.All, Group.Read.All, GroupMember.ReadBasic.All, Application.Read.All, RoleManagement.Read.Directory, AdministrativeUnit.Read.All, RoleEligibilitySchedule.Read.Directory |
| Read leave dates (the Read leave dates setting) | Add User-LifeCycleInfo.Read.All. Turn the setting on only after granting it: without it, Microsoft Graph refuses the whole user list. |
| Read hidden group memberships | Add Member.Read.Hidden. |
| User provisioning and lifecycle | User.ReadWrite.All |
| Set a user's password (password changes) | User-PasswordProfile.ReadWrite.All, and a directory role for the app's service principal: at least User Administrator, even for users who hold no administrator role. See below. |
| Add or remove group members | GroupMember.ReadWrite.All. For role-assignable groups, also RoleManagement.ReadWrite.Directory. |
| Add or remove app-role assignments and application permissions | AppRoleAssignment.ReadWrite.All and Application.Read.All |
| Add or remove directory-role assignments | RoleManagement.ReadWrite.Directory |
| Sync application owners | Application.Read.All |
| Manage owners on service principals owned by the connector app | Application.ReadWrite.OwnedBy and Directory.Read.All |
| Manage owners on arbitrary service principals | Application.ReadWrite.All and Directory.Read.All |
Password changes need a directory role as well as the permission. Microsoft's Update user reference says an application that sets passwordProfile needs a supported permission and at least the User Administrator role, even when the user is not an administrator. A user who holds an administrator role needs a stronger one. Assign the role to the app's service principal under Roles and administrators. To limit which users the app can reset, scope the role to an administrative unit that holds only the users Owlie manages. Owlie hasn't verified these requirements against a live tenant, so try a password change on a test account before you rely on it.
Microsoft documents application-owner permissions for adding owners and removing owners. Application.ReadWrite.OwnedBy is limited to targets owned by the app. The broader pair is needed when managing arbitrary service principals.
Connect Microsoft Entra ID in Owlie
The shared integration settings and the Client Credentials option use these fields:
| Field | Required | Format and example |
|---|---|---|
| Tenant ID | Yes | Directory ID, such as 00000000-0000-0000-0000-000000000000. |
| Read leave dates | No | Off by default. Turn it on to read each user's leave date as their end date. It needs User-LifeCycleInfo.Read.All. |
| Client ID | Yes | Application ID, such as 11111111-1111-1111-1111-111111111111. |
| Client Secret | Yes | Secret value from Certificates & secrets. Treat it as a password. |
Test connection lists up to one user and confirms the response has a value collection. It checks user-list access only. It does not test every permission or license used by sync and writes.
User sync reads each user's hire date as their start date, so People lifecycle can tell a new starter from someone already working. With Read leave dates on, it also reads the leave date as their end date, so someone who is leaving shows as Leaving and then Terminated. Whether an account is enabled never changes anyone's employment status: disabling an account is an IT action, not an HR one.
Entities
| Entity | In Microsoft Entra ID | Identifier | Key attributes | Sync | Create | Update | Delete | Grants (as target) |
|---|---|---|---|---|---|---|---|---|
| User | Workforce user account. The account entity. | id, userPrincipalName | userPrincipalName, displayName, accountEnabled, mail, manager | Yes | Yes | Yes | Yes | No |
| Group | Security or Microsoft 365 group. | id | displayName, groupTypes, mailEnabled, securityEnabled | Yes | No | No | No | member_of |
| Service principal | Enterprise application, service principal or managed identity. | id | displayName, appId, servicePrincipalType, appRoles | Yes | No | No | No | app_role_assignment, application_permission, application_owner |
| Application role | A role defined by a service principal. | id scoped to its resource service principal | displayName | Yes | No | No | No | No |
| Directory role | A Microsoft Entra directory role definition. | id | displayName, isBuiltIn | Yes | No | No | No | directory_role_assignment |
| Directory permission | An action name from a directory role definition. | id | displayName | Yes | No | No | No | No |
| Directory scope | The whole directory or an administrative unit. | / or /administrativeUnits/{id} | displayName | Yes | No | No | No | No |
Grant kinds
| Grant kind | In Microsoft Entra ID | Principal → target | Writable | Qualifiers | Passes access through |
|---|---|---|---|---|---|
member_of | Direct group membership. | User or group → Group | Yes | None | Yes, nested group membership can carry access through supported security groups. |
app_role_assignment | A user or group is assigned an app role on an enterprise application. | User or group → Service principal | Yes | Required app_role reference scoped to the target service principal. | No |
application_permission | An application service principal receives an app role on another service principal. | Service principal → Service principal | Yes | Required app_role reference scoped to the target service principal. | No |
directory_role_assignment | A principal receives a directory role at tenant or administrative-unit scope. | User, group or service principal → Directory role | Yes | Required scope: / or /administrativeUnits/{id}. | Yes, its role permissions are observed separately. |
role_permission | An action allowed by a directory role. | Directory role → Directory permission | No | None | Yes, permissions expand from their role. |
role_eligibility | A principal is eligible for a PIM directory role. | User or group → Directory role | No | Required scope: tenant or administrative-unit scope. | No, eligibility is not held privilege. |
application_owner | An owner reference on an enterprise application. | User or service principal → Service principal | Yes | None | No |
App-role qualifiers identify a role on the selected resource service principal. Directory-role writes accept only tenant-wide or administrative-unit scope. Microsoft 365 and role-assignable groups cannot contain nested groups through this connector.
Provisioning behaviour and limits
Provisioning generates userPrincipalName from the identity email: the email itself first, then a numbered variant such as jsmith2@example.com when another account holds it. mailNickname follows the generated name. An identity without an email is not provisioned. The default creates an enabled user with a random 24-character password that must be changed at first sign-in. Owlie keeps no copy of it. Confirm the identity email maps to a domain verified in the connected tenant.
Update changes mapped user attributes. A password change sets the user's new password and does not require a change at next sign-in. Owlie sends it only when you link the resource to the person's password, and only one of the Entra ID, Microsoft Teams and OneDrive resources should be linked because they write the same user. Microsoft can refuse a change for a password that breaks the tenant's rules, an account whose password comes from on-premises Active Directory or a federated domain, or a guest. Owlie shows a fixed reason for each. A timeout or a Microsoft server error isn't treated as a refusal: the change may have been applied, so Owlie asks you to confirm and set the password again. Disable and enable set accountEnabled to false and true. Revoke removes managed Grants and deletes the Entra user.
Revoke deletes the Entra user. Check managed Grants and the target user before running it.
Application-owner revoke removes that owner reference. Microsoft recommends service principals have at least two owners. Review owner coverage before removing one (Microsoft owner API).
Membership writes reject dynamic, on-premises-synchronized and Exchange-managed groups. Adding a group inside a Microsoft 365 or role-assignable group is unsupported. Reads of service principals as group members are not available from Microsoft Graph v1.0. Directory-role sync fails closed when a role definition contains conditional, excluded or inherited permissions. PIM eligibility is read-only and requires applicable tenant licensing. The connector does not activate eligible roles or evaluate conditional access, restricted administrative-unit rules, or runtime authorization.
Troubleshooting
Test connection fails with Connection failed: .... Check the tenant ID, client ID, secret, and admin consent for User.Read.All. Test connection does not validate the permissions needed by other features.
A group membership write is rejected. Check whether the target group is dynamic, synchronized from on-premises, or Exchange-managed. If the principal is another group, Microsoft 365 and role-assignable targets are also unsupported.
A role or app write fails with insufficient privileges. Check that the corresponding Graph application permission is present and admin consent was granted. Directory-role assignment writes require RoleManagement.ReadWrite.Directory. Owner writes depend on the target's ownership and the app permissions described above.
Changelog
Microsoft Entra ID is at version 1. Owlie displays the connector's changelog in the integration catalog.