{ "opencollection": "1.0.0", "info": { "name": "Sonatype Nexus Repository Manager assets Security management: users API", "version": "3.91.0-07" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Security management: users", "type": "folder" }, "items": [ { "info": { "name": "Retrieve a list of users. For SAML user sources a limit of 1000 users will be applied.", "type": "http" }, "http": { "method": "GET", "url": "/service/rest/v1/security/users", "params": [ { "name": "userId", "value": "", "type": "query", "description": "An optional term to search userids for." }, { "name": "source", "value": "", "type": "query", "description": "An optional user source to restrict the search to." } ] }, "docs": "Retrieve a list of users. For SAML user sources a limit of 1000 users will be applied." }, { "info": { "name": "Create a new user in the default source.", "type": "http" }, "http": { "method": "POST", "url": "/service/rest/v1/security/users", "body": { "type": "json", "data": "{}" } }, "docs": "Create a new user in the default source." }, { "info": { "name": "Update an existing user.", "type": "http" }, "http": { "method": "PUT", "url": "/service/rest/v1/security/users/:userId", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The userid the request should apply to." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update an existing user." }, { "info": { "name": "Delete a user.", "type": "http" }, "http": { "method": "DELETE", "url": "/service/rest/v1/security/users/:userId", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The userid the request should apply to." }, { "name": "realm", "value": "", "type": "query", "description": "The realm the request should apply to." } ] }, "docs": "Delete a user." }, { "info": { "name": "Change a user's password.", "type": "http" }, "http": { "method": "PUT", "url": "/service/rest/v1/security/users/:userId/change-password", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The userid the request should apply to." } ] }, "docs": "Change a user's password." }, { "info": { "name": "Get user token metadata for the given user.", "type": "http" }, "http": { "method": "GET", "url": "/service/rest/v1/security/users/:userId/:realm/user-token", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The userId of the user to get the token for" }, { "name": "realm", "value": "", "type": "path", "description": "The realm of the user to get the token for" } ] }, "docs": "Retrieves metadata for an existing user token. Both userId and realm are required parameters. The passCode is never returned in this response." }, { "info": { "name": "Create a user token for the given user.", "type": "http" }, "http": { "method": "POST", "url": "/service/rest/v1/security/users/:userId/:realm/user-token", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The userId of the user to create the token for" }, { "name": "realm", "value": "", "type": "path", "description": "The realm of the user to create the token for" } ] }, "docs": "Creates a new user token for the specified user. Both userId and realm are required parameters." }, { "info": { "name": "Delete the user token for the given user.", "type": "http" }, "http": { "method": "DELETE", "url": "/service/rest/v1/security/users/:userId/:realm/user-token", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The userId of the user to delete the token for" }, { "name": "realm", "value": "", "type": "path", "description": "The realm of the user to delete the token for" } ] }, "docs": "Deletes the user token for the specified user. Both userId and realm are required parameters. The token will be invalidated immediately and can no longer be used." }, { "info": { "name": "Reset the user token for the given user.", "type": "http" }, "http": { "method": "DELETE", "url": "/service/rest/v1/security/users/:userId/:realm/user-token-reset", "params": [ { "name": "userId", "value": "", "type": "path", "description": "The userId of the user to reset the token for" }, { "name": "realm", "value": "", "type": "path", "description": "The realm of the user to reset the token for" } ] }, "docs": "Resetting the user token will invalidate the current token and force a new token to be created the next time it is accessed. This endpoint is deprecated, use DELETE /user-token instead." } ] } ], "bundled": true }