I am writing an administrative dispatch menu command.
How do I limit which users have visibility of this to just the admin?
I don't believe there is a way to do this on certain scripts. You can hide all scripts by removing the add-ins section from the users menus, or you can group your dispatch scripts using a \, like administration\set vars. But that's about you can do.
I have not figured out a way to do this, so I would also be interested if someone knows how!
However even though a user can see a dispatch it does not mean they can use it. They will only be able to use the dispatch if they already have the permission to do whatever the dispatch is accomplishing. You can create a jump that says if name of logged in user is not equal to "" then exit.
Came across this thread while searching and wanted to correct the previous posts. There is a way to do this within the Dispatch script itself. This Youtube video explains some methods:
Password Protect or Limit Access to EPDM Dispatch Scripts - Author: Walt Bednarz - YouTube
Hi Brian -
Without looking at the video, the easiest method is to store the name of the logged in user in a variable, then use the Jump and Label commands to allow/disallow the person to continue.
Retrieving data ...