What privileges does a user need to upload/deploy to every repository hosted on local Sonatype Nexus 3.0 server?

OddDev picture OddDev · Aug 24, 2016 · Viewed 10.3k times · Source

Note: since I'm the only one searching for it it feels like I want to use bad practice.

I want to create a deploy-user. Its only purpose is to be configured in the settings.xml as a server-entity:

<servers>
 <server>
  <id>nexus</id>
  <username>deploy-user</username>
  <password>somepassword</password>
 </server>
</servers>

The user only needs permission to upload artifacts to all the repositories hosted on the Nexus 3.0 server. I've created a role "Deployment" and need to know which privileges need to be applied.

Answer

NOZUONOHIGH picture NOZUONOHIGH · Jul 5, 2018

Nexus 2

The User must have Artifact Upload privilege, which can be searched in privileges tab.

  • Create a custom Role for your user, add Artifact Upload privilege to the Role.
  • Bind the Role to your user.

Below is an example of nexus 2.x:

And this is for nexus 3.x: