Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Set 'GRANT EXECUTE ON %Library.RoutineMgr_StudioOpenDialog TO *' Globally Somehow ?

Question
sween · Mar 9, 2022

Set 'GRANT EXECUTE ON %Library.RoutineMgr_StudioOpenDialog TO *' Globally Somehow ?

We have an implementation with a bunch of users, and a bunch of namespaces, both of which are added and removed frequently, and the users have restrictive perms in the namespaces (lets just say, not %All)... and the users are utilizing the VSCODE extension for development.

Per the instructions and the user experience, we need to run:

GRANT EXECUTE ON %Library.RoutineMgr_StudioOpenDialog TO ${user}

For ... each Namespace, and additionally %SYS for Web Apps.

Is there a way to globally just make this happen "once" somewhere or is it absolutely necessary find a spot to invoke it?

We use delegated auth on /apit/atelier and the SMP, so a hook in ZAUTHENTICATE.mac can be execute the above to iterate all namespaces, %SYS, upon login, but was wondering if something a little cleaner could be used ?

#Development Environment #VSCode
Product version: IRIS 2022.1

Source URL:https://community.intersystems.com/post/set-grant-execute-libraryroutinemgrstudioopendialog-globally-somehow