No Scripts Found for non superusers #8643

Closed
opened 2025-12-29 20:39:15 +01:00 by adam · 3 comments
Owner

Originally created by @enribla on GitHub (Sep 19, 2023).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.6.1

Python version

3.9

Steps to Reproduce

  1. Upload script in the scripts repository
  2. Login as Active user (not superuser) with "extras | script and extras | script module" actions set to run, view.
  3. Select Customization > Scripts
    image
  4. with a superuser we can see the scripts
    image

Expected Behavior

Be able to see the scripts stored on the server

Observed Behavior

Page reports "No Scripts Found"

This issue was reported in a previous version (v3.5.1) but it seems it was fixed enabling extras script module (see issue #12516)

Originally created by @enribla on GitHub (Sep 19, 2023). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.6.1 ### Python version 3.9 ### Steps to Reproduce 1. Upload script in the scripts repository 2. Login as Active user (not superuser) with "extras | script and extras | script module" actions set to run, view. 3. Select Customization > Scripts ![image](https://github.com/netbox-community/netbox/assets/53942090/e45e9c4b-1e59-416a-b625-517314706d31) 4. with a superuser we can see the scripts ![image](https://github.com/netbox-community/netbox/assets/53942090/a65e7c15-0ff7-4cd8-8458-fb58a595cae7) ### Expected Behavior Be able to see the scripts stored on the server ### Observed Behavior Page reports "No Scripts Found" This issue was reported in a previous version (v3.5.1) but it seems it was fixed enabling extras script module (see issue #12516)
adam added the status: acceptedtype: documentation labels 2025-12-29 20:39:15 +01:00
adam closed this issue 2025-12-29 20:39:15 +01:00
Author
Owner

@arthanson commented on GitHub (Sep 19, 2023):

This is caused because it is checking for core->managedfile view permission, setting this allows the user to view the scripts. Looks like you currently need all of:

Extras > Script
Extras > ScriptModule
Core > ManagedFile

Question is - should this be a documentation issue to add this perm, or should it not be checking this perm and consolidated down to less permissions. Technically it seems like ManagedFile is correct and should be documented, but open for discussion.

@arthanson commented on GitHub (Sep 19, 2023): This is caused because it is checking for core->managedfile view permission, setting this allows the user to view the scripts. Looks like you currently need all of: ``` Extras > Script Extras > ScriptModule Core > ManagedFile ``` Question is - should this be a documentation issue to add this perm, or should it not be checking this perm and consolidated down to less permissions. Technically it seems like ManagedFile is correct and should be documented, but open for discussion.
Author
Owner

@enribla commented on GitHub (Sep 20, 2023):

Thanks Arthason.
For the main public it would be helpfull to document the necessary permissions. It is not very intuitive if you don't deep into the code
Thanks again!

@enribla commented on GitHub (Sep 20, 2023): Thanks Arthason. For the main public it would be helpfull to document the necessary permissions. It is not very intuitive if you don't deep into the code Thanks again!
Author
Owner

@jeremystretch commented on GitHub (Oct 5, 2023):

Reclassified this as a documentation change.

@jeremystretch commented on GitHub (Oct 5, 2023): Reclassified this as a documentation change.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8643