impersonate using table API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2019 12:24 PM
I need to know if there is a way without doing a scripted REST API to use the table API to attach a file and impersonate a user so it shows the impersonated user attached the file?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 05:28 AM
Hello,
Kind of. If the system sending the REST WS call uses the credentials (login/pwd) of a user, then the attachment will be displayed as created by this user.
However, if system sending the call uses its own credentials, then no, there is no way to mark attachement as created by someone else, as part of OOTB. You will have to go with a scripted API.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 07:27 AM
We are going to use a scripted API, Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2019 09:48 AM
If that's the case, check out the GlideImpersonate() class. There is an impersonate() method that takes a sysID as an argument.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 05:57 AM
Thanks Chuck I'll give that a shot!