Script action to run as different user instead of system for encryption context
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-30-2020 06:10 AM
Hi all
we have a integration to sending value of a field to 3rd party application. We wanna do the encryption for that field and give the context to a user (or service account). However, the script action is running as system so system don't have access to the encrypted field, which we sending the encrypted value instead of the actual value.
I tried the getDisplayValue(),which giving me blank.
I tried the gs.getSession().impersonate('sys_id_of_user') , which not working since encryption context is not working with impersonation.
Is there a way to access the System ? or is there a way to make encryption context works when running as other user instead of system?
Is there any way to achieve this?
Any best practice for this would be great help for us.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā01-30-2020 11:50 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-07-2020 03:36 PM
Hi qili,
does this solve your question?