feat(csa-362): optimize admin export for high user volumes with bulk IAM API#2429
Merged
Conversation
cmgrote
requested changes
Apr 21, 2026
bladata1990
force-pushed
the
fix/csa-362-admin-export-scale
branch
from
April 22, 2026 10:07
e0e5488 to
c1581d8
Compare
…IAM API Replaces per-user Keycloak calls (which fail at scale) with a single bulk lookup against the Redis-backed identity API (/identity/users, /identity/groups). Key changes: - IdentityEndpoint: bulk-fetches user details (id, username, email, enabled, firstName, lastName, createdTimestamp, groups) and group aliases in batches of 500, using an escalated sudo client with x-endpoint-type: utility header - Users.kt: collects all users upfront, resolves group memberships and aliases in bulk, then writes a single row per user — eliminating O(n) Keycloak calls - AtlanUser.UserAttributes: annotates all List<String> fields with StringOrListDeserializer so both Redis (flat string) and Keycloak (array) attribute formats deserialize correctly - StringOrListDeserializer: wraps a bare JSON string into a single-element list, handling the Redis vs Keycloak attribute format difference - gradle.properties: bump version to 7.0.3-SNAPSHOT Signed-off-by: bladata1990 <balakrishnan.r@atlan.com>
bladata1990
force-pushed
the
fix/csa-362-admin-export-scale
branch
from
April 22, 2026 10:14
c1581d8 to
9940721
Compare
cmgrote
approved these changes
Apr 22, 2026
cmgrote
enabled auto-merge
April 22, 2026 10:30
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.
Summary
/identity/usersendpoint, fixing timeouts at 60K+ users (reported at GM)IdentityEndpointto the SDK withgetUsers()(user details + groups in one shot) andgetGroupAliases()— both batched at 500 IDs/requestclient.identityintoAtlanClient;Users.ktnow usesgetUsers()and falls back to Heracles only for fields Redis doesn't provide (lastLoginTime,personas,licenseType,designation)IamClientTest) covering empty inputs, field mapping, missing attributes, and batch splitting via a local HTTP stub serverTest plan
./gradlew :samples:packages:admin-export:test -PpackageTestsResolving user details and group memberships via IdentityEndpoint (bulk IAM API)...appears in run output