When running an automation script, are all the rights from the user triggering the script taken into account?
I know a script can’t access element info for example when the user triggering the script does not have the required rights, but is this true in all cases?
I’m encountering some issues when trying to access credentials from the Credentials Library from an automation script. Even credentials that I create from the script itself are not accessible from the script, though they are created when I check the Library.xml.
When I run the script as the Administrator user it succeeds though, so I’m trying to get some insight in how permissions come into play when running automation scripts. Does the script have the same permissions? Are there limitations?
Hi Alexander,
When an Automation script is started by a user, all requests sent in that script (e.g. using engine.SendSLNetMessages) will be executed under that user context. This should thus result in having the permissions of that user being applied.
I would thus assume that, if you read the credentials using the SLNet message (GetLibraryCredentialsRequestMessage), you should be able to retrieve those that your user has access to. When you create them, make sure to assign the correct groups.
Could you share some info on how you create and retrieve these credentials?

My user indeed was no longer in the group I was assigning to to the credentials I was creating. Works fine after adding myself to this group again.
Thanks for the clarification!