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