2020-01-31 04:37:05 -06: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 03:25:26 -06:00
|
|
|
# technical_user:
|
|
|
|
# api_token: 0123456789technicaluser789abcdef01234567 # must be looooong!
|
|
|
|
# reader:
|
|
|
|
# password: reader
|
|
|
|
# writer:
|
|
|
|
# password: writer
|
2018-10-13 10:44:01 -05:00
|
|
|
# permissions:
|
|
|
|
# - delete_device
|
|
|
|
# - delete_virtualmachine
|
2019-12-11 10:14:38 -06:00
|
|
|
# - add_*
|
|
|
|
# - change_*
|