Package com.atlan.api
Class IdentityEndpoint
java.lang.Object
com.atlan.api.AbstractEndpoint
com.atlan.api.HeraclesEndpoint
com.atlan.api.IdentityEndpoint
API endpoints for the Redis-backed IAM identity service (/identity/...).
Provides bulk lookups for user group memberships and group aliases,
replacing per-user Keycloak calls that fail at high user volumes.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlan.api.AbstractEndpoint
AbstractEndpoint.RawResponse, AbstractEndpoint.ThrowingSupplier<T,E extends Exception> -
Field Summary
Fields inherited from class com.atlan.api.AbstractEndpoint
client -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGroupAliases(List<String> groupIds) Bulk-fetch group aliases (display names) for the given group IDs.getGroupAliases(List<String> groupIds, int batchSize) Bulk-fetch group aliases (display names) for the given group IDs.getUserGroups(List<String> userIds) Bulk-fetch group memberships for the given user IDs.getUserGroups(List<String> userIds, int batchSize) Bulk-fetch group memberships for the given user IDs.Bulk-fetch full user details (including group memberships) for the given user IDs.Bulk-fetch full user details (including group memberships) for the given user IDs.Methods inherited from class com.atlan.api.HeraclesEndpoint
getBaseUrlMethods inherited from class com.atlan.api.AbstractEndpoint
executeWithRetries, getBaseUrl, getClient
-
Constructor Details
-
IdentityEndpoint
-
-
Method Details
-
getUserGroups
Bulk-fetch group memberships for the given user IDs.- Parameters:
userIds- list of user IDs to look up- Returns:
- map of userId to list of AtlanGroup (id + Keycloak group name)
- Throws:
AtlanException- on any API communication issue
-
getUserGroups
public Map<String,List<AtlanGroup>> getUserGroups(List<String> userIds, int batchSize) throws AtlanException Bulk-fetch group memberships for the given user IDs.- Parameters:
userIds- list of user IDs to look upbatchSize- number of IDs per request- Returns:
- map of userId to list of AtlanGroup (id + Keycloak group name)
- Throws:
AtlanException- on any API communication issue
-
getUsers
Bulk-fetch full user details (including group memberships) for the given user IDs. Returns each user's id, username, email, enabled, firstName, lastName, createdTimestamp, groups, and attributes in a single API call per batch, eliminating the need for a separategetUserGroups(java.util.List<java.lang.String>)call.- Parameters:
userIds- list of user IDs to look up- Returns:
- map of userId to AtlanUser
- Throws:
AtlanException- on any API communication issue
-
getUsers
Bulk-fetch full user details (including group memberships) for the given user IDs.- Parameters:
userIds- list of user IDs to look upbatchSize- number of IDs per request- Returns:
- map of userId to AtlanUser
- Throws:
AtlanException- on any API communication issue
-
getGroupAliases
Bulk-fetch group aliases (display names) for the given group IDs.- Parameters:
groupIds- list of group IDs to look up- Returns:
- map of groupId to alias (display name), empty string if no alias set
- Throws:
AtlanException- on any API communication issue
-
getGroupAliases
public Map<String,String> getGroupAliases(List<String> groupIds, int batchSize) throws AtlanException Bulk-fetch group aliases (display names) for the given group IDs.- Parameters:
groupIds- list of group IDs to look upbatchSize- number of IDs per request- Returns:
- map of groupId to alias (display name), empty string if no alias set
- Throws:
AtlanException- on any API communication issue
-