Product: PowerShell Universal
Version: 5.0.5
Hi everyone,
I’ve just recently updated our Powershell Universal instance from version 3 to version 5. Back in V3, I had tied a set of Entra groups to PSU roles which each had permissions to view and execute scripts with a specific tag. IE, everyone in the NOC Entra group would be able to see all the NOC scripts and execute them on sign in. Those in the service desk group would not see any scripts with the NOC tag (unless it also had the service desk tag).
With the switch to permissions in version 5, this functionality seems to be missing? I can still create new roles, but I can’t tie these to permissions in any way that I can see. There is a button to view permissions, but only the built-in roles have permissions attached. The official documentation is also conflicted on this - at the top it states "Custom roles can have custom permissions set. " but then under “Managing Permissions” it says “Roles currently cannot be assigned permissions.”
Beyond that, even if I could use the new permissions system, it seems I am now limited to all or nothing when it comes to the automation piece. Either users can read/write/execute all scripts, or none.
I do see an option to assign a role to a script, but this doesn’t appear to do anything? A user with “Read” permissions (via the built-in role) and the “NOC” role was able to execute any script I tried in the environment, with or without the NOC role assigned. Furthermore, the “Script Reader” role didn’t seem to work at all, assigning that to my Entra user displayed the role and permissions correctly under “My Identity” on login, but didn’t provide any access to the scripts portion of the dashboard.
I’m somewhere between bug, feature request, and question here but I mostly want to know if I am missing something with regards to how this is supposed to be set up or if this is expected behavior? At the end of the day, all I really want is to categorize my scripts so that certain scripts can’t be seen, modified, or executed by certain team members. The tags and access controls of past versions seemed to do this nicely. If there is a different/better way to do this now, I am open to it, but I don’t see it.
Hopefully that makes sense, thank you for reading my ramblings.
-Connor