curl -u admin:admin123 -X POST 'http://nexus:8081/service/rest/v1/security/users' \ -H 'Content-Type: application/json' \ -d ' "userId": "johndoe", "firstName": "John", "lastName": "Doe", "email": "john@example.com", "password": "Temporary123!", "status": "active", "roles": ["nx-admin"] '
during the first installation. You can find this temporary password in a file named admin.password located in the Nexus data directory $data-dir/admin.password Versions Before 3.17.0 : The default credentials are nexus 3 email and password