- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2023 05:11 PM
Hello Community,
I came across an issue when developing the scripted REST API (global scope).
Dedicated User account is used for the integration purposes, however, I need to be able to impersonate other Users via script, so that specific actions are triggered by those Users.
This works perfectly if integration User is granted the 'admin' Role. However, it does not work (impersonation is not successful) when 'impersonator' Role is used instead.
Can you please advise if it is possible to impersonate other User via scripted REST API without granting the 'Admin' Role to the integration User? How to achieve this?
Thank you in advance for your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2023 12:55 AM
I found another thread that contains answer to my question.
Scripted REST API can trigger Script Action via Event.
As Script Action is executed by the system, impersonation is possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2023 08:50 PM
what are those specific actions?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2023 12:53 AM
any actions, this should not matter. I have already found an answer to my question and I will post it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2023 12:55 AM
I found another thread that contains answer to my question.
Scripted REST API can trigger Script Action via Event.
As Script Action is executed by the system, impersonation is possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2024 01:41 AM
Hello
Could you please Share the link to the article that helped? Thanks
Regards
Pradeep