Skip to main content

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​

CapabilitySupportedDetails
SyncYesUsers, groups, service principals, app roles, directory roles and permissions, administrative units, memberships, assignments, PIM eligibility and owners.
Incremental syncNoEach entity uses paged full-list operations.
Account provisioningYesCreate, update, disable, enable and revoke Entra users.
Grant writesYesGroup membership, app-role assignment, application permission, directory-role assignment and application owner.
NotificationsNo
Custom operationsNo

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​

  1. In the Microsoft Entra admin center, open Identity > Applications > App registrations, then select New registration. Register an app for accounts in this organizational directory.
  2. Copy the Directory (tenant) ID and Application (client) ID from the app registration's Overview page.
  3. Open Certificates & secrets, create a client secret, and copy its value before leaving the page.
  4. 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.

FeatureMicrosoft Graph application permissions
User, group, membership, service-principal, app-role and directory-role syncUser.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 membershipsAdd Member.Read.Hidden.
User provisioning and lifecycleUser.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 membersGroupMember.ReadWrite.All. For role-assignable groups, also RoleManagement.ReadWrite.Directory.
Add or remove app-role assignments and application permissionsAppRoleAssignment.ReadWrite.All and Application.Read.All
Add or remove directory-role assignmentsRoleManagement.ReadWrite.Directory
Sync application ownersApplication.Read.All
Manage owners on service principals owned by the connector appApplication.ReadWrite.OwnedBy and Directory.Read.All
Manage owners on arbitrary service principalsApplication.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:

FieldRequiredFormat and example
Tenant IDYesDirectory ID, such as 00000000-0000-0000-0000-000000000000.
Read leave datesNoOff by default. Turn it on to read each user's leave date as their end date. It needs User-LifeCycleInfo.Read.All.
Client IDYesApplication ID, such as 11111111-1111-1111-1111-111111111111.
Client SecretYesSecret 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​

EntityIn Microsoft Entra IDIdentifierKey attributesSyncCreateUpdateDeleteGrants (as target)
UserWorkforce user account. The account entity.id, userPrincipalNameuserPrincipalName, displayName, accountEnabled, mail, managerYesYesYesYesNo
GroupSecurity or Microsoft 365 group.iddisplayName, groupTypes, mailEnabled, securityEnabledYesNoNoNomember_of
Service principalEnterprise application, service principal or managed identity.iddisplayName, appId, servicePrincipalType, appRolesYesNoNoNoapp_role_assignment, application_permission, application_owner
Application roleA role defined by a service principal.id scoped to its resource service principaldisplayNameYesNoNoNoNo
Directory roleA Microsoft Entra directory role definition.iddisplayName, isBuiltInYesNoNoNodirectory_role_assignment
Directory permissionAn action name from a directory role definition.iddisplayNameYesNoNoNoNo
Directory scopeThe whole directory or an administrative unit./ or /administrativeUnits/{id}displayNameYesNoNoNoNo

Grant kinds​

Grant kindIn Microsoft Entra IDPrincipal → targetWritableQualifiersPasses access through
member_ofDirect group membership.User or group → GroupYesNoneYes, nested group membership can carry access through supported security groups.
app_role_assignmentA user or group is assigned an app role on an enterprise application.User or group → Service principalYesRequired app_role reference scoped to the target service principal.No
application_permissionAn application service principal receives an app role on another service principal.Service principal → Service principalYesRequired app_role reference scoped to the target service principal.No
directory_role_assignmentA principal receives a directory role at tenant or administrative-unit scope.User, group or service principal → Directory roleYesRequired scope: / or /administrativeUnits/{id}.Yes, its role permissions are observed separately.
role_permissionAn action allowed by a directory role.Directory role → Directory permissionNoNoneYes, permissions expand from their role.
role_eligibilityA principal is eligible for a PIM directory role.User or group → Directory roleNoRequired scope: tenant or administrative-unit scope.No, eligibility is not held privilege.
application_ownerAn owner reference on an enterprise application.User or service principal → Service principalYesNoneNo

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.

warning

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.