Logo

dev-resources.site

for different kinds of informations.

Error: Full scoped PAT is restricted by your organisation

Published at
11/1/2022
Categories
azure
devops
pipelines
community
Author
arindam0310018
Categories
4 categories in total
azure
open
devops
open
pipelines
open
community
open
Author
14 person written this
arindam0310018
open
Error: Full scoped PAT is restricted by your organisation

Greetings my fellow Technology Advocates and Specialists.

In this Troubleshooting Session, I will demonstrate, how I resolved the encountered error - "Full Scoped PAT is restricted by your Organisation".

One day, in hour of need, I encountered the above error, when I tried creating a full scoped PAT (Personal Access Token) in my DevOps Organisation.

Details of my DevOps Organisation follows below:-

KEY VALUE
DevOps Organisation URL https://dev.azure.com/AM0704
DevOps Organisation Owner [email protected]
DevOps Project AMCLOUD
DevOps Service Connection amcloud-cicd-service-connection

Generate a Full Scoped PAT in DevOps Organisation:-

Image description
Image description

Below is how the error looks like with "Full Access" Scope option greyed out:-

Image description

The User Account/Identity in reference is:-

  1. Owner of DevOps Organisation.
  2. Global Administrator of the Directory.
Image description
Image description

Also, DevOps Organisation policies CANNOT be viewed from the same User Account/Identity:-

Image description

When referred to Microsoft documentation Use policies to manage personal access tokens for users, it clearly states that the User Account/Identity must be an "Azure DevOps Administrator" in Azure AD to manage DevOps Organisation Policies.

Image description

We now proceed to Assign "Azure DevOps Administrator" Role to the reference User Account/Identity:-

Image description
Image description
Image description
Image description

As observed,

  1. We are able to successfully view the DevOps Organisation policies using the same reference User Account/Identity.

  2. The Policy "Restrict full-scoped personal access token creation" is enabled with No users in allow list. Hence the above error.

Image description

In order to be able to create Full Scoped PAT, below actions should be taken:-

  1. Keep the Policy enabled but add one or more User account/Identity in the allow list; OR
  2. Disable the Policy.
Image description
Image description

In both cases, User will be allowed to create Full Scoped PAT.

Image description

Hope You Enjoyed the Session!!!

Stay Safe | Keep Learning | Spread Knowledge

pipelines Article's
30 articles in total
Favicon
The Art of Iteration: Starting the Cycle
Favicon
The Art of Iteration: Loop in Pipeline Stage
Favicon
Automating Docker Workflows with Jenkins: A Complete Guide
Favicon
TIL how to see the entire commit column on GitLab using JS
Favicon
Getting Started with Apache Kafka: A Backend Engineer's Perspective
Favicon
Building pipelines with IAsyncEnumerable in .NET
Favicon
DevOps Security Integrating Best Practices into Your Pipeline
Favicon
Creating a data pipeline using Dataproc workflow templates and cloud Schedule
Favicon
☸️ Kubernetes: A Convenient Variable Substitution Mechanism for Kustomize
Favicon
Setting Up a CI/CD Pipeline with AWS and Git: A Comprehensive Guide
Favicon
Enabling Pipelines: Easier than ever
Favicon
Optimizing GitLab CI for Readability and Maintainability: From 1K to 600 Lines!
Favicon
Building Robust Data Pipelines: A Comprehensive Guide
Favicon
Azure DevOps Pipelines breaks my "additional arguments" when using Deploy to Azure
Favicon
What is CI/CD Pipeline?-Comparing pipelines!
Favicon
🌟 The Power of Automation: Deploying an ARM Template in Microsoft Azure πŸš€
Favicon
Meet cici-tools, a multi-tool for building GitLab CI/CD pipelines
Favicon
Unlocking the Power of Data: 7 Key Factors to Consider When Building Data Pipelines
Favicon
Optimize Development with Jenkins Pipelines and Continuous Integration
Favicon
Amplify Your Tech Stack with Jenkins Shared Libraries
Favicon
Important Questions related to Data Engineering
Favicon
How To Secure Your CI/CD Pipeline
Favicon
Flexible and dynamic flow control of Azure DevOps YAML Pipelines using variables
Favicon
Go API Project Set-Up
Favicon
Sftp with Az Devops
Favicon
Error: Full scoped PAT is restricted by your organisation
Favicon
Error: No hosted parallelism has been purchased or granted
Favicon
SparrowCI - DSL is dead, long live DSL!
Favicon
Introducing the CircleCI Config SDK
Favicon
Run DB Scripts to Azure PostgreSQL Single Server using Azure CLI Task in pipeline

Featured ones: