Fixes: #20490 - Add filtering of Script objects based on object permissions with custom constraints #535

Closed
opened 2026-04-05 16:40:48 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @bctiemann on 1/18/2026

Fixes: #20490

Adds the ability to filter Scripts based on custom object-level permissions with constraints such as:

    {
        "name__in": [
            "MyScript"
        ]
    }

Note that this permission is applied against Script objects, allowing permissions to be applied against Script or ScriptModule objects via ORM lookups; however, access to the overall Scripts page is given via the ManagedFile object type.

*Originally created by @bctiemann on 1/18/2026* ### Fixes: #20490 Adds the ability to filter Scripts based on custom object-level permissions with `constraints` such as: ``` { "name__in": [ "MyScript" ] } ``` Note that this permission is applied against `Script` objects, allowing permissions to be applied against `Script` or `ScriptModule` objects via ORM lookups; however, access to the overall Scripts page is given via the `ManagedFile` object type.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#535