NetBox version
v3.4.2
Python version
3.10
Steps to Reproduce
- Create a user with no permissions
- Create a token for the user
- Create a script -
script0.Script0 as an example.
- Execute the script via. the API:
curl -X POST -H "Authorization: Token TOKEN" -H "Content-Type: application/json" -H "Accept: application/json; indent=4" http://127.0.0.1:8000/api/extras/scripts/script0.Script0/ --data '{"data": {}, "commit": true}'
Expected Behavior
403 Forbidden
Observed Behavior
The script is run