authentik/website/docs/expressions/_user.md

10 lines
264 B
Markdown

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