providers/saml: add custom help text for templates, add docs for User Object reference

This commit is contained in:
Jens Langhammer
2020-02-17 20:30:14 +01:00
parent 9400b01a55
commit bc4b7ef44d
6 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,20 @@
# Passbook User Object
The User object has the following attributes:
- `username`: User's Username
- `email` User's E-Mail
- `name` User's Display Name
- `is_staff` Boolean field if user is staff
- `is_active` Boolean field if user is active
- `date_joined` Date User joined/was created
- `password_change_date` Date Password was last changed
- `attributes` Dynamic Attributes
## Examples
List all the User's Group Names
```jinja2
[{% for group in user.groups.all() %}'{{ group.name }}',{% endfor %}]
```