UserCache#
- class pyatlan.cache.user_cache.UserCache(user_client: UserClient, token_client: TokenClient)[source]#
Lazily-loaded cache for translating Atlan-internal users into their various IDs.
- classmethod get_id_for_email(email: str) str | None [source]#
Translate the provided email to its GUID.
- Parameters:
email – email address of the user
- Returns:
unique identifier (GUID) of the user
- classmethod get_id_for_name(name: str) str | None [source]#
Translate the provided human-readable username to its GUID.
- Parameters:
name – human-readable name of the user
- Returns:
unique identifier (GUID) of the user