26
Views
2
Comments
[Trigger Pipeline] Issue with "401 - Unauthorized" Error When Triggering Azure DevOps Pipeline via OutSy
trigger-pipeline
Web icon
Forge asset by OutSystems Lab
Application Type
Traditional Web

Hi everyone,

I'm encountering an issue when trying to trigger an Azure DevOps pipeline through an integration in OutSystems. I'm using a PowerShell script in a YAML pipeline to trigger the pipeline in Azure DevOps, but I keep getting a "401 - Unauthorized" error. I've double-checked the credentials, and I'm confident that they are correct and have the necessary permissions.


Best regards,

Daianne Souza


2025-09-25 14-38-22
Lokesh Kumar Yadav

The 401 - Unauthorized error typically indicates an issue with authentication. Here are a few things to check: Personal Access Token (PAT) ,Authentication Method,Base URL ,Check Permissions 

2019-03-18 15-58-58
Duarte Castaño
Staff

Hi Daianne,

You can always check the LifeTime logs for more detailed error information—they can often provide insights beyond what the Azure DevOps response provides.

That said, a 401 - Unauthorized error is typically related to Azure DevOps token permissions. Even if the token looks correct, it's worth verifying that:

  • The PAT (Personal Access Token) hasn’t expired
  • It has the correct scopes, especially for Build (read & execute) and Project & Team (read) permissions
  • The user associated with the PAT has access to the project and pipeline you’re trying to trigger


Let us know if checking the token and logs helps clarify the root cause!

Best regards,
Duarte

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.