Python: Retrieve a user | Supabase Docs (original) (raw)
Fetches the user object from the database based on the user's id.
The
get_user_by_id()
method requires the user's id which maps to theauth.users.id
column.
Parameters
uid
(Required)
The user's unique identifier This function should only be called on a server. Never expose your `service_role` key in the browser.
Examples
Fetch the user object using the access_token jwt
response = supabase.auth.admin.get_user_by_id(1)