This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
authentik/website/docs/expressions/_user.md

10 lines
261 B
Markdown
Raw Normal View History

- `user`: The current user. This may be `None` if there is no contextual user. See [User](../user-group/user/user_ref.md#object-properties).
Example:
```python
return {
"custom_attribute": request.user.attributes.get("custom_attribute", "default"),
}
```