How to auto generate a token for OAuth authentication?

Reddy
Kilo Sage

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?

 

Reddy_1-1710778708890.png

Reddy_2-1710779122166.png

 

 

 

 

 

1 REPLY 1

Amit Pandey
Kilo Sage

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