Back to Authentik

User

website/docs/expressions/_user.md

latest262 B
Original Source
  • user: The current user. This may be None if there is no contextual user. See User.

Example:

python
return {
  "custom_attribute": request.user.attributes.get("custom_attribute", "default"),
}