Restrict scripts for users
How do I restrict the execution of a given script to a given label?
2 Comments
[ + ] Show comments
-
Can you revise your question text to make it clearer that you mean restricting to users and not devices? - JasonEgg 6 years ago
-
yes, of course - lpansarini 6 years ago
Answers (2)
Please log in to answer
Posted by:
feeldamped
6 years ago
Have you tried setting it up with a smart label? You would just include the label you want to restrict that script to that smart label. And add the smart label to the script.
Make sure the script would have a schedule too, or it will not deploy via smart label.
Comments:
-
My idea is to restrict access to scripts.
Example: I have a team of IT Analysts who can not execute script 01. But I can not make the restriction. - lpansarini 6 years ago
Posted by:
JasonEgg
6 years ago
You can restrict access for specific scripts to specific users in Service Desk > User Downloads. I think this only works through the the "User Portal" interface and not the admin interface, but I'm not sure. That is, technicians can kick off scripts from the User Portal when they are on the targeted computer and not using the "Run Now" function, but I would have to test that.
Comments:
-
Yes, the problem would be for certain users to use certain scripts with Run Now - lpansarini 6 years ago
-
AFAIK this can't be done. You can restrict users to only be able to run any script on certain computers, but not restrict users to run only certain scripts (expect with the "User Portal" method I mentioned above).
Here are two feature request pages that you might want to check out:
https://kace.uservoice.com/forums/82699-sma-k1000/suggestions/6878819-granular-access-control-in-regards-to-which-script
https://kace.uservoice.com/forums/82699-sma-k1000/suggestions/33982258-restrict-execution-of-scripts-in-run-now-to-only - JasonEgg 6 years ago