Virtual Agent runs scripts as User
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2022 08:19 PM
When I'm running a script action in a VA topic, the script does not run as admin.
For instance, in one of my scripts I'm referring to the Date Of Birth (DOB) field of a user to conditionally show or hide a bot response for users older than 40. However, the DOB field is restricted via ACLs to everyone except admins (yes, you cannot even view your own DOB if you are not an admin). So the flow behaviour here is erratic as the Flow execution runs as the user who triggered it, not as an Administrator.
Ideally, if Flow Designer is allowed to run as User or as Administrator, VA topic flows should be allowed to do so, too
What can I do to fix this, or circumvent this issue? Bear in mind that I'm not displaying the DOB to the user anywhere - only using it to conditionally hide a bot response block.
- Labels:
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2022 11:09 AM
"user guest is not able to access the domain" seems to be pretty ominous... any chance you use Domain Separation? I don't know much about it, but it wouldn't surprise me at all to know that domain separation trumps/is evaluated before ACLs which seems like it would track...
Or if you're not using domain separation but seemingly are testing as a guest (not logged in user), have you tried testing as a non-admin user? We use SSO and I've never tried anything VA as a guest so maybe it treats those differently ¯\_(ツ)_/¯
If that's not it, I'm stumped... we'll just have to see if others have other insights or experiences that'll help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2022 08:56 PM
I duplicated the topic in the Global domain but still the issue persists.
The user is a logged-in non-admin, not a guest user. So yeah, I'm stumped too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2022 10:14 PM