Hi Dojo,
While reviewing a health check on some Automation Scripts I noticed on the logs that one of the issues was occurring in a strange behavior.
The script tries to execute actions on an element based on the result of the mapping of an input, and it is always being run by the same user. However, what happens is that sometimes this user is successful executing the script, while other times an exception is thrown, in particular the exception Skyline.DataMiner.Net.Exceptions.DataMinerSecurityException: Access not allowed. An example of this is shown in the screenshot below, where this script fails and succeeds right after.
What could be the possible reason for this behavior? Thanks in advance.
Hi Francisco,
If the element on which the actions are performed is determined by user input, could it be that the user running the script has permissions on some elements but lacks them on others, causing the script to fail\succeed depending on the user input and which element it maps to?
I checked and realized the script was indeed accessing different elements depending on the provided action, but it also could be executing different things on those elements besides only setting parameters, which could also be affected by the user’s permissions. As the user running the script did not have all permissions enabled, it very well might be one of the two cases (either element specific permissions or execution permissions). Thank you for the help!