2020-01-31 11:37:05 +01:00
|
|
|
## To list all permissions, run:
|
|
|
|
##
|
|
|
|
## docker-compose run --rm --entrypoint /bin/bash netbox
|
|
|
|
## $ ./manage.py migrate
|
|
|
|
## $ ./manage.py shell
|
|
|
|
## > from django.contrib.auth.models import Permission
|
|
|
|
## > print('\n'.join([p.codename for p in Permission.objects.all()]))
|
|
|
|
##
|
|
|
|
## Permission lists support wildcards. See the examples below.
|
|
|
|
##
|
|
|
|
## Examples:
|
|
|
|
|
2018-02-16 10:25:26 +01:00
|
|
|
# technical_user:
|
|
|
|
# api_token: 0123456789technicaluser789abcdef01234567 # must be looooong!
|
|
|
|
# reader:
|
|
|
|
# password: reader
|
|
|
|
# writer:
|
|
|
|
# password: writer
|
2018-10-13 17:44:01 +02:00
|
|
|
# permissions:
|
|
|
|
# - delete_device
|
|
|
|
# - delete_virtualmachine
|
2019-12-11 17:14:38 +01:00
|
|
|
# - add_*
|
|
|
|
# - change_*
|