Setting up Azure DevOps OAuth 2.0 credential
Create Azure DevOps OAuth 2.0 credential and use them to connect your Azure DevOps instance.
Create a tenant in Microsoft Entra
Create a tenant in Microsoft Entra and set up the required permissions to create an Azure DevOps (ADO) app.
Before you begin
Role required: Tenant Creator in Azure DevOps.
About this task
Your tenant represents your organization and helps you to manage a specific instance of Microsoft Cloud services for your internal and external users.
If you have an existing tenant, which has access to create an ADO app, you do not need to perform this procedure. If you don’t have a tenant, you must create a tenant in Microsoft Entra, which will have access to create an ADO app.
Procedure
Add a user to tenant in Microsoft Entra
Add a user who contains the admin role, to the tenant created in the previous procedure.
Before you begin
Role required: User Administrator in Azure DevOps
Procedure
Create an organization in Azure portal
Create an organization in the new tenant, which has access to create an app.
Before you begin
Role required: Global Administrator in Azure DevOps
Procedure
Create an Azure DevOps app
Create and configure an Azure DevOps (ADO) app and copy the required values to enable OAuth 2.0 authentication with your ServiceNow instance.
Before you begin
Role required: Global Administrator in Azure DevOps
Procedure
Register Azure DevOps as an OAuth provider
Use the information generated during Azure DevOps (ADO) app account configuration to register Azure DevOps as an OAuth provider and enable the instance to request OAuth 2.0 tokens.
Before you begin
Role required: admin
Procedure
Configure organization and project level settings
Configure organization and project level settings for your app.
Before you begin
Role required: Member of the Project Collection Administrators group or organization's owner.
Procedure
Create credential record and get OAuth token
Create credential record and get OAuth token.
Before you begin
Role required: admin, sn_devops.admin
About this task
For ADO OAuth 2.0, you must create separate credential records for build, release, and feeds in ServiceNow.