How to auto generate a token for OAuth authentication?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 09:26 AM
Hello,
I have successfully integrated ServiceNow with another third-party tool called Asana. Whenever a worknote is updated on a record, I trigger a business rule and invoke the REST message to update the comments in the third-party tool.
My concern is that when another user updates a record, the third-party tool displays my name as the one who updated the comments. Initially, I authenticated to receive the token using the "Get OAuth token." I want to generate tokens for each user so that if they update the record, it will show their name instead of mine. Is there a better approach to resolve this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 10:35 AM
Hi @Reddy
I think it should be from the integration user profile. Team Asana might have created integration user profile with your name. Please check with them and ask them to change.
You need to pass sys_updated_by in the payload so that they can map it. OOB it will capture the name of integration user.
Please mark my answer helpful and correct.
Regards,
Amit