web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

nuget.exe - 403 error during azure devops artifact upload

(2) ShareShare
ReportReport
Posted on by 429
I'm trying to upload the necessary DevALM nuget packages for creating the build pipeline in our d365fo azure devops repository. I have created a personal access token (with packaging rights of read, write and manage) in devops and entered the following commands in the nuget.exe folder to set up the source and push a package:
 
nuget.exe sources add -Name Contoso -Source "https://pkgs.dev.azure.com/Contoso/_packaging/Contoso/nuget/v3/index.json" -Username myname@externalcompany.com -Password ***PAT***

nuget.exe push -Source Contoso -ApiKey az Microsoft.Dynamics.AX.Application1.DevALM.BuildXpp.nupkg
Despite entering PAT info in source, i get the following error:
Response status code does not indicate success: 403 (Forbidden - User '********-****' lacks permission to complete this action. You need to have 'AddPackage'. (DevOps Activity ID: FCBBFFAD-1D3E-4ACC-B6ED-E88A0C4EF0A9)).
 
Categories:
I have the same question (0)
  • EK-26061005-0 Profile Picture
    429 on at
    nuget.exe - 403 error during azure devops artifact upload
    Thank you Martin.
     
    The issue was resolved after adding my account in the feed settings permissions as a contributor.
  • Verified answer
    Martin Dráb Profile Picture
    235,979 Most Valuable Professional on at
    nuget.exe - 403 error during azure devops artifact upload
    It means that it successfully logged in but the user (myname@externalcompany.com) lacks the permissions to add a package. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 882 User Group Leader

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 723 Super User 2025 Season 2

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 518

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans