Running this action requires a token — a base64(admin:password) string used for HTTP Basic authentication in requests to Nexus.
AssignNexusPrivilege — assigns privileges to an existing role in Nexus Repository Manager 3. The action retrieves the role’s current configuration and merges its existing privileges with the new ones.
Request example
roleId: example-role
privileges:
- example-privilege
- another-privilegeRequest specification
| Field | Required | Description |
|---|---|---|
| roleId | Yes | Identifier of the role to which privileges are assigned |
| privileges | Yes | List of privilege names to assign to the role |
How it works
- Retrieves the role’s current configuration from Nexus.
- Merges the role’s existing privileges with the new privileges from the request.
- Updates the role with the merged list of privileges.
Note
The role must exist in Nexus before privileges can be assigned. If the role is not found, the action fails with an error. All specified privileges must also exist in Nexus.