Create Role in Nexus Repository Manager

Role is a term used to define the rights of a user in a given system. The Nexus Repository Manager also allows us to define roles to manage the rights of users when using. How is it in details? Let’s find out in this tutorial. First, you need to log into the admin account and navigate to the “Server administrator and configuration” section: Create Role in Nexus Repository Manager In the left menu, click on the “Roles” menu item. Create Role in Nexus Repository Manager As you can see, here we have two Roles created by default when we install the Nexus Repository Manager which is nx-admin and nx-anonymous. Users with roles like nx-admin can do all anything in the Nexus Repository Manager, and users with the nx-anonymous role will only be able to read. You can click on these Roles to see detailed permissions defined for them. Now we will try to create your new role. To do this, click the “Create role” button. At this point you will see two options for creating new roles as follows:
  • Nexus role
  • External role mapping
Create Role in Nexus Repository Manager
The “Nexus role” is an option that allows us to create a new role within the Nexus Repository Manager. “External role mapping” allows us to point to an external role management system, which now supports LDAP. In this example, I will create a new role within the Nexus Repository Manager. Create Role in Nexus Repository Manager You need to fill in the Role ID, Role name and select the permissions that this Role should have in the Privileges section. You can also use the inheritance function from the permissions defined for other roles in the Roles section of this window. For example, I enter the Role ID and Role Name as “nx-deployer”. The Privileges section, because in the previous tutorial I created a Maven Repository named “huongdanjava-releases”, so, in this Privileges section, you will see some permissions related to this repository. Create Role in Nexus Repository Manager I will select the “nx-repository-admin-maven2-huongdanjava-releases- *” privileges to assign all permissions to the “huongdanjava-releases” repository for this role. Create Role in Nexus Repository Manager Finally, click the “Create role” button to finish creating a new role in Nexus Repository Manager.

Add Comment