- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2024 10:50 PM
How can I update an approval record through a third-party integration (Postman) so that the Updated by field in the activity log reflects the approver’s name, rather than the integration account?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2024 02:26 AM
It is possible if you are using Scripted Rest API. You can use below script to impersonate as approver before approving:
var impUser = new GlideImpersonate();
impUser.impersonate("<sys_id of approver>");
Palani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2024 02:26 AM
It is possible if you are using Scripted Rest API. You can use below script to impersonate as approver before approving:
var impUser = new GlideImpersonate();
impUser.impersonate("<sys_id of approver>");
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2024 02:30 AM
Thanks Palani for your response.
I have used the above method like gs.getSession().impersonate(<sys_id of the approver>"); and it didn't work properly until i gave admin access to integration account

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2024 02:35 AM
You need to grant "impersonator" role. Ensure the integration user has approval access and "impersonator" role
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2024 11:26 PM
After granting impersonator role, still it doesn't seem to work. it only approves the specific approval record and blocks the workflow.