File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change
1
+ # # To list all permissions, run:
2
+ # #
3
+ # # docker-compose run --rm --entrypoint /bin/bash netbox
4
+ # # $ ./manage.py migrate
5
+ # # $ ./manage.py shell
6
+ # # > from django.contrib.auth.models import Permission
7
+ # # > print('\n'.join([p.codename for p in Permission.objects.all()]))
8
+ # #
9
+ # # Permission lists support wildcards. See the examples below.
10
+ # #
11
+ # # Examples:
12
+
1
13
# applications:
2
14
# users:
3
15
# - technical_user
7
19
# writers:
8
20
# users:
9
21
# - writer
10
- # # specify explicit permission codenames or include wildcard to match multiple permissions
11
22
# permissions:
12
23
# - delete_device
13
24
# - delete_virtualmachine
14
25
# - add_*
15
26
# - change_*
16
27
# vm_managers:
17
- # # yaml doesn't allow starting a key with an asterisk without explicit use of single quote
28
+ # permissions:
18
29
# - '*_virtualmachine'
19
30
# device_managers:
31
+ # permissions:
20
32
# - '*device*'
21
33
# creators:
34
+ # permissions:
22
35
# - add_*
Original file line number Diff line number Diff line change
1
+ # # To list all permissions, run:
2
+ # #
3
+ # # docker-compose run --rm --entrypoint /bin/bash netbox
4
+ # # $ ./manage.py migrate
5
+ # # $ ./manage.py shell
6
+ # # > from django.contrib.auth.models import Permission
7
+ # # > print('\n'.join([p.codename for p in Permission.objects.all()]))
8
+ # #
9
+ # # Permission lists support wildcards. See the examples below.
10
+ # #
11
+ # # Examples:
12
+
1
13
# technical_user:
2
14
# api_token: 0123456789technicaluser789abcdef01234567 # must be looooong!
3
15
# reader:
4
16
# password: reader
5
17
# writer:
6
18
# password: writer
7
- # # specify explicit permission codenames or include wildcard to match multiple permissions
8
19
# permissions:
9
20
# - delete_device
10
21
# - delete_virtualmachine
You can’t perform that action at this time.
0 commit comments