Skip to main content

Security Management API

Please see the APIdocumentation (found in the Administration section under System) of your Sonatype Nexus Repository instance for complete documentation about the specific endpoints available in your local server.

Content Selectors

The content selectors REST API endpoints can be used to create and manage content selectors:

  • list the content selectors

  • create or modify content selectors

LDAP

The LDAP endpoints can be used to accomplish the following:

  • List all LDAP servers

  • Create LDAP server

  • Retrieve the details of a single LDAP server

  • Update LDAP server

  • Delete LDAP server

  • Change LDAP server ordering

Privileges

The privileges REST API endpoints can be used to create and manage privileges:

  • list the privileges

  • create or modify privileges

Roles

The roles REST API endpoints can be used to create and manage roles and their permissions within Sonatype Nexus Repository:

  • list the roles from any configured user source (internal or external)

  • create or modify local roles and external role mappings

Users

The users REST API endpoints can be used to create and manage users and their permissions within Sonatype Nexus Repository:

  • search for users available to NXRM whether they were defined locally or from a configured authentication source such as LDAP

  • create or modify local users

  • change the roles associated with an external user

  • reset an individual user token

  • reset all user tokens in the system

Note

The users REST API can accept the following realm names associated with user tokens: LdapRealm, Crowd, SamlRealm, and NexusAuthenticatingRealm.

User Sources

This endpoint provides a list of the available users sources in Sonatype Nexus Repository. Other REST endpoints use these to indicate the source of certain types of entities (e.g., a user from an LDAP server).