- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2022 10:42 PM
Hi,
I am trying to use REST API to create a work item in Azure DevOps from ServiceNow. The API works fine using Personal Access Token(PAT) in postman. Any idea how I can use PAT as an authentication type in ServiceNow Outbound REST message.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2022 11:10 AM
It worked by creating a Basic Authentication credentials in ServiceNow with User Name as my AD/Network ID and password as Azure Personal Access Token (PAT).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-20-2022 11:10 AM
It worked by creating a Basic Authentication credentials in ServiceNow with User Name as my AD/Network ID and password as Azure Personal Access Token (PAT).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2023 10:28 PM
Hi Swapna,
Hope you are doing well!!!
I need to achieve the same thing. Can you please help with the info that what do you mean by 'setting the username with AD/Network ID" does that mean the username on ServiceNow side should be the token name of the PAT from azure devOps side.
Thanks in advance,
Aindrila
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2024 11:23 AM
Thank you for your insight, i have tried as you said like user name is AD and password is PAT, its worked fines, however after 30 days i tried to create incident in servicenow , did not reflect into azure devops work item because of PAT(token) has expired .how can i refresh token automatically as soon as its expired .did you have any token expired issue by any chance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2024 09:02 PM
@anitha0887
Usually Personal access token has a shorter validity. Once it is expired, a new one has to be created. I used PAT only during POC. Later, I switched the authentication using OAuth configuration which has 2 years Validity for client secret. Hope this information helps.