The CreatorCon Call for Content is officially open! Get started here.

How to use Azure DevOps Personal Access Token as an authentication type in REST API

Swapna Abburi
Mega Sage
Mega Sage

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.

1 ACCEPTED SOLUTION

Swapna Abburi
Mega Sage
Mega Sage

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).

View solution in original post

10 REPLIES 10

Hi @Swapna Abburi 

Thank you for update , how did you create OAuth configuration.what steps need to be followed to create oauth, can mention steps here.

Aindrila Mondal
Tera Expert

worked thanks

Could you please let me know how you used PAT...it will expire after 30 days right?

Yeah yes I would expire. But for our use case we received the PAT form Azure team., we had asked the team on Azure side to extend the PAT duration to 120 days, i think that can be done in the configuration on the Azure side, expiration can be extended to 90/120 days.

Karim Kabbara1
Tera Expert

Hi,

 

Can you use Azure Service Principle account to access DevOps?

 

Thanks in advance!

Karim