I created a role with the privilege nx-component-upload and even added nx-repository-view-*-*-add but the user does not have the “upload” option in the web UI.
Are the nx-repository-view privileges the right ones to assign permissions to repositories? Or is a view something separate?
I found that the user needs nx-repository-view-*-*-browse privilege as well. But that is still not enough to allow a package to be uploaded.
When trying form the command line I get:
+ dotnet nuget push --api-key **** --source https://<URI>/repository/nuget-hosted/ <package>-<version>.nupkg
info : Pushing <package>-<version>.nupkg to 'https://<URI>/repository/nuget-hosted/'...
info : PUT https://<URI>/repository/nuget-hosted/
info : Forbidden https://<URI>/repository/nuget-hosted/ 148ms
error: Response status code does not indicate success: 403 (Forbidden).
When trying from the Web UI I get: Not authorized for requested path '<package.name>/<version>'
Another surprise was that the user needs the nx-apikey-all privilege to generate/user an API key.
A detailed overview and/or more detailed documentation in the list of privileges would be most useful!