- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2017 01:55 AM
how can I impersonate a user via script
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2017 01:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2017 02:07 AM
Thanks All
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2020 05:27 AM
I have tried all of them but its not working in my case.
My case: I am using this in a runscript of a workflow where I am trying to update one of the sctask of the request item with the impersonated user. But the update is happening with the user who raised the request. And if I update the request item, it is updated with impersonated user.
So the issue is when I am gliding the sctask that was already created and updating the record.
Is there something I am missing. PLease help.
I have tried gs.getSession().onlineImpersonate("<user_name>");,new GlideImpersonate().impersonate(your user id);etc
The impersonate log says it is sussesfull but still the update is not with impersonated user.