Question around 'Execute as Role' = 'Administrator`. This doesn't affect the search result produce within the script, correct? Meaning, the search results will still adhere to the User/Role that trigger the script.?
n
Nathan L
08/24/2023, 3:35 PM
No it will execute the search as if the user role is admin
Nathan L
08/24/2023, 3:37 PM
execute as admin is used to bypass role restrictions. Saved searches would be included in that.
d
darrenhillconsulting
08/24/2023, 3:38 PM
Interesting. We're not seeing that behaviour. I've started by setting ALL scripts to Execute as Admin, yet, the User/Role that triggers the scripts get script errors indicating that do not have certain permissions
e
Edgar Valdes
08/24/2023, 3:57 PM
You can't run all scripts as admin. Client scripts always run as the current user AFAIK.
a
Anthony OConnor
08/24/2023, 4:16 PM
just speculating - I'd think the PERMISSIONS for the searches would use admin, but if you're using relative filters in the search based on employee - like "my team" or "mine" or w/e then I'd guess that would still be respected because that's not a user permission as such.
🤯 1
👍 1
e
ExtendApps Inc.
08/25/2023, 10:02 AM
The searches are being dynamically created and executed at the code level.