Package com.atlan.api
Class ImpersonationEndpoint
java.lang.Object
com.atlan.api.AbstractEndpoint
com.atlan.api.ImpersonationEndpoint
API endpoints for impersonating users as part of Atlan automations (if desired).
Note: this will only work when run as part of Atlan's packaged workflow ecosystem
(running in the cluster back-end).
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlan.api.AbstractEndpoint
AbstractEndpoint.RawResponse
-
Field Summary
Fields inherited from class com.atlan.api.AbstractEndpoint
client
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionescalate()
Escalate to a privileged user on a short-term basis.escalate
(RequestOptions options) Escalate to a privileged user on a short-term basis.protected String
Retrieves a bearer token that impersonates the provided user.user
(String userId, RequestOptions options) Retrieves a bearer token that impersonates the provided user.Methods inherited from class com.atlan.api.AbstractEndpoint
getBaseUrl
-
Constructor Details
-
ImpersonationEndpoint
-
-
Method Details
-
getBaseUrl
- Throws:
ApiConnectionException
-
escalate
Escalate to a privileged user on a short-term basis. Note: this is only possible from within the Atlan tenant, and only when given the appropriate credentials.- Returns:
- a short-lived bearer token with escalated privileges
- Throws:
AtlanException
- on any API communication or permission issue
-
escalate
Escalate to a privileged user on a short-term basis. Note: this is only possible from within the Atlan tenant, and only when given the appropriate credentials.- Parameters:
options
- to override default client settings- Returns:
- a short-lived bearer token with escalated privileges
- Throws:
AtlanException
- on any API communication or permission issue
-
user
Retrieves a bearer token that impersonates the provided user.- Parameters:
userId
- unique identifier of the user to impersonate- Returns:
- a bearer token that impersonates the provided user
- Throws:
AtlanException
- on any API communication issue
-
user
Retrieves a bearer token that impersonates the provided user.- Parameters:
userId
- unique identifier of the user to impersonateoptions
- to override default client settings- Returns:
- a bearer token that impersonates the provided user
- Throws:
AtlanException
- on any API communication issue
-