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

Notifications

Announcements

No record found.

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 443
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)
  • Verified answer
    Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at
    It means that it successfully logged in but the user (myname@externalcompany.com) lacks the permissions to add a package. 
  • EK-26061005-0 Profile Picture
    443 on at
    Thank you Martin.
     
    The issue was resolved after adding my account in the feed settings permissions as a contributor.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans