User lacks permission to complete this action. You need to have 'AddPackage'
When you setup a new repository and build in Azure DevOps, you would expect it to work out of the box but I kept getting error, User {someguid} does not have permission. If you go to the feed and try to search by this GUID, you will find no one. Hopefully this post will save sometime for someone else.
Here are you Azure Devop steps.
- Click on "Artifacts" on the left side.
- Select your feed from the drop down (usually selected by default)
- Click the "Feed Setting" gear on the top right corner.
- Click "Permissions"
- Click "Add Users/groups" and search for {your org} Build Service and add as contributor.