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
|
|
|
# applications:
|
|
|
|
# users:
|
|
|
|
# - technical_user
|
|
|
|
# readers:
|
|
|
|
# users:
|
|
|
|
# - reader
|
|
|
|
# writers:
|
|
|
|
# users:
|
|
|
|
# - writer
|
2018-10-13 10:44:01 -05:00
|
|
|
# permissions:
|
|
|
|
# - delete_device
|
|
|
|
# - delete_virtualmachine
|
2019-12-11 10:14:38 -06:00
|
|
|
# - add_*
|
|
|
|
# - change_*
|
2019-12-05 09:41:11 -06:00
|
|
|
# vm_managers:
|
2020-01-31 04:37:05 -06:00
|
|
|
# permissions:
|
2019-12-11 10:21:28 -06:00
|
|
|
# - '*_virtualmachine'
|
2019-12-05 09:44:40 -06:00
|
|
|
# device_managers:
|
2020-01-31 04:37:05 -06:00
|
|
|
# permissions:
|
2019-12-11 10:21:28 -06:00
|
|
|
# - '*device*'
|
2019-12-05 09:41:11 -06:00
|
|
|
# creators:
|
2020-01-31 04:37:05 -06:00
|
|
|
# permissions:
|
2019-12-11 10:14:38 -06:00
|
|
|
# - add_*
|