RANGER-5683: Add Microsoft EntraID (Azure AD) as a UserSync source via the Microsoft Graph API#1101
Draft
vyommani wants to merge 1 commit into
Draft
RANGER-5683: Add Microsoft EntraID (Azure AD) as a UserSync source via the Microsoft Graph API#1101vyommani wants to merge 1 commit into
vyommani wants to merge 1 commit into
Conversation
vyommani
marked this pull request as draft
July 22, 2026 07:13
…a the Microsoft Graph API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
What this does
Adds a new UserSync source that synchronizes users, groups, and group memberships from Microsoft EntraID (Azure AD) via the Microsoft Graph API. It targets deployments where LDAP/AD access is unavailable or prohibited (e.g. cloud-native or restricted private-cloud environments) and there is no first-class way to sync EntraID identities into Ranger today.
The source plugs into the existing UserGroupSource SPI and is selected via ranger.usersync.source.impl.class — existing LDAP/Unix/file sources are unaffected.
Key capabilities
Configuration
Configured via ranger.usersync.entraid.* properties. Required: tenant.id, client.id, auth.type, graph.base.url, and the credential. Optional properties (membership mode, page size, timeouts, select attributes) default sensibly.
How was this patch tested?
Testing
Unit tests cover source orchestration (cycle-type decisions, delta handling, deletion routing, membership modes, resync, per-group failure resilience) and the Graph client (paging, delta, throttling, cross-page membership merge, certificate JWT assertion, SSRF host validation, malformed-response handling).
Validated end-to-end against a live Ranger instance at target scale (40,000 users / 8,000 groups), in both DIRECT and TRANSITIVE membership modes, including a 30,000-member group to exercise cross-page membership aggregation. Full incremental lifecycle (add/delete/modify) verified at the database level. Peak UserSync memory ~420 MB.
This has not yet been tested against a live Microsoft EntraID tenant. All testing to date used a stateful mock Graph server that reproduces Graph's delta/paging/membership semantics as we understand them. The following require real-tenant validation and are not confirmed by this PR:
Certificate authentication (JWT signing, x5t thumbprint format) against the real Entra token endpoint.
Actual Graph response shapes, paging, and delta-token expiry behavior.
The connector and its Ranger integration are validated; the Graph-side assumptions are not yet confirmed against Microsoft. Real-tenant validation is planned as a follow-up.
openitem
Open item — deployment wiring
Configuration currently threads through ranger-ugsync-site.xml. How EntraID properties should flow through the standard install.properties setup path is.