App User
get_app_user
Get information for a specific Chainlit App user.
Parameters
username
str
The username of the app user to retrieve information for.
Returns
persisted_app_user
Optional[PersistedAppUser]
requiredThe app user information if found, None otherwise.
Example
Code Example
from chainlit.client.cloud import chainlit_client
username = "john_doe"
persisted_app_user = await chainlit_client.get_app_user(username)
if persisted_app_user:
print(f"App user found: {persisted_app_user.username}")
else:
print("No app user found.")
Was this page helpful?