Skip to content

Restrict users permission to run specific scripts #15587

@llamafilm

Description

@llamafilm

NetBox version

v3.7.3

Feature type

Change to existing functionality

Proposed functionality

I would like to apply constraints to running scripts, so that each user can only run specific scripts.

Use case

We are starting to write a number of custom scripts, meant to be run via the WebUI, and want to enforce RBAC to scripts as we do for manual changes to the data (models).

For example, one script provides a customized form to create a new device, making it easier for our operators; this should be runnable by most users. Another script triggers a power cycle of a PDU outlet using an external API; this should be runnable only by admins.

Database changes

unsure

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureIntroduction of new functionality to the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions