{ "opencollection": "1.0.0", "info": { "name": "Sonatype Lifecycle Public REST Advanced Search Role Memberships API", "version": "1.201.0-02" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Role Memberships", "type": "folder" }, "items": [ { "info": { "name": "getRoleMembershipsGlobalOrRepositoryContainer", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v2/roleMemberships/:ownerType", "params": [ { "name": "ownerType", "value": "", "type": "path", "description": "Enter the value for ownerType. Using `global` will return the users and groups who have been assigned the administrator role." } ] }, "docs": "Use this method to retrieve all users and roles globally or for all repositories.\n\nPermissions required: Edit system configuration and users for a global context or view IQ elements for a non-global context" }, { "info": { "name": "setBulkRoleMembersGlobalOrRepositoryContainer", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/v2/roleMemberships/:ownerType/role/:roleId/members", "params": [ { "name": "ownerType", "value": "", "type": "path", "description": "Enter the ownerType." }, { "name": "roleId", "value": "", "type": "path", "description": "Enter the roleId for the role whose members should be set.\n\nUse the Roles REST API for roleIds and descriptions." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Use this method to set all members for a specific role in the global or repository container context. This operation atomically replaces all existing members for the role with the provided list.\n\nPermissions required: Edit system configuration and users for a global context or edit access control for a non-global context" }, { "info": { "name": "grantRoleMembershipGlobalOrRepositoryContainer", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/v2/roleMemberships/:ownerType/role/:roleId/:memberType/:memberName", "params": [ { "name": "ownerType", "value": "", "type": "path", "description": "Enter the value for the ownerType for which you want to grant the role." }, { "name": "roleId", "value": "", "type": "path", "description": "Enter the roleId for the role to be granted.\n\nUse the Roles REST API for roleIds and descriptions." }, { "name": "memberType", "value": "", "type": "path", "description": "Enter the value for memberType, to specify a user or a user group." }, { "name": "memberName", "value": "", "type": "path", "description": "Enter the value for memberName. This can be a username or group name depending upon the value of memberType above." } ] }, "docs": "Use this method to grant a role to a user or user group globally or on all repositories.\n\nPermissions required: Edit system configuration and users for a global context or edit access control for a non-global context" }, { "info": { "name": "revokeRoleMembershipGlobalOrRepositoryContainer", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/v2/roleMemberships/:ownerType/role/:roleId/:memberType/:memberName", "params": [ { "name": "ownerType", "value": "", "type": "path", "description": "Enter the value for ownerType. Using `global` will revoke the administrator role." }, { "name": "roleId", "value": "", "type": "path", "description": "Enter the roleId for the role to be revoked." }, { "name": "memberType", "value": "", "type": "path", "description": "Enter the value for memberType, to specify a user or a user group." }, { "name": "memberName", "value": "", "type": "path", "description": "Enter the value for memberName. This can be a username or group name depending upon the value of memberType above." } ] }, "docs": "Use this method to revoke roles globally or on all repositories.\n\nPermissions required: Edit system configuration and users for a global context or view IQ elements for a non-global context" }, { "info": { "name": "getBulkRoleMembershipsGlobalOrRepositoryContainer", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v2/roleMemberships/:ownerType/roles", "params": [ { "name": "ownerType", "value": "", "type": "path", "description": "Enter the value for ownerType." } ] }, "docs": "Use this method to retrieve all role memberships for global or repository container context with full details including role names, descriptions, and member information.\n\nPermissions required: Edit system configuration and users for a global context or view IQ elements for a non-global context" }, { "info": { "name": "getRoleMembershipsApplicationOrOrganization", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v2/roleMemberships/:ownerType/:internalOwnerId", "params": [ { "name": "ownerType", "value": "", "type": "path", "description": "Enter the ownerType for which you want to retrieve users and their role Ids." }, { "name": "internalOwnerId", "value": "", "type": "path", "description": "Enter the corresponding id for the ownerType specified above." } ] }, "docs": "Use this method to retrieve the users, user groups and the corresponding role Ids.\n\nPermissions required: Edit system configuration and users for a global context or view IQ elements for a non-global context" }, { "info": { "name": "setBulkRoleMembersNonGlobal", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/v2/roleMemberships/:ownerType/:internalOwnerId/role/:roleId/members", "params": [ { "name": "ownerType", "value": "", "type": "path", "description": "Enter the ownerType for which you want to set role members." }, { "name": "internalOwnerId", "value": "", "type": "path", "description": "Enter the id associated with the ownerType specified above. For applications, use the public ID. For organizations, repositories, and repository managers, use the internal ID." }, { "name": "roleId", "value": "", "type": "path", "description": "Enter the roleId for the role whose members should be set.\n\nUse the Roles REST API for roleIds and descriptions." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Use this method to set all members for a specific role. This operation atomically replaces all existing members for the role with the provided list.\n\nPermissions required: Edit access control" }, { "info": { "name": "grantRoleMembershipApplicationOrOrganization", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/v2/roleMemberships/:ownerType/:internalOwnerId/role/:roleId/:memberType/:memberName", "params": [ { "name": "ownerType", "value": "", "type": "path", "description": "Enter the value for the ownerType for which you want to grant the role." }, { "name": "internalOwnerId", "value": "", "type": "path", "description": "Enter the value for the internalId associated with the ownerType specified above." }, { "name": "roleId", "value": "", "type": "path", "description": "Enter the roleId for the role to be granted.\n\nUse the Roles REST API for roleIds and descriptions." }, { "name": "memberType", "value": "", "type": "path", "description": "Enter the value for memberType, to specify a user or a user group." }, { "name": "memberName", "value": "", "type": "path", "description": "Enter the value for memberName. This can be a username or group name depending upon the value of memberType above." }, { "name": "validateMember", "value": "", "type": "query", "description": "If true, attempts to validate if the specified user or group exists before assigning the role.\nIf false or omitted, the request behaves as before (no validation check)." } ] }, "docs": "Use this method to grant a role to a user or user group for the specified application or organization.\n\nPermissions required: Edit access control" }, { "info": { "name": "revokeRoleMembershipApplicationOrOrganization", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/v2/roleMemberships/:ownerType/:internalOwnerId/role/:roleId/:memberType/:memberName", "params": [ { "name": "ownerType", "value": "", "type": "path", "description": "Enter the value for the ownerType for which you want to revoke the role. Using `global` will revoke the administrator role." }, { "name": "internalOwnerId", "value": "", "type": "path", "description": "Enter the internalId associated with the ownerType specified above." }, { "name": "roleId", "value": "", "type": "path", "description": "Enter the roleId for the role to be revoked." }, { "name": "memberType", "value": "", "type": "path", "description": "Enter the value for memberType, to specify a user or a user group." }, { "name": "memberName", "value": "", "type": "path", "description": "Enter the value for memberName. This can be a username or group name depending upon the value of memberType above." } ] }, "docs": "Use this method to revoke a role from a user or user group, on a specific application or organization.\n\nPermissions required: Edit access control" }, { "info": { "name": "getBulkRoleMembershipsNonGlobal", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v2/roleMemberships/:ownerType/:internalOwnerId/roles", "params": [ { "name": "ownerType", "value": "", "type": "path", "description": "Enter the ownerType for which you want to retrieve role memberships." }, { "name": "internalOwnerId", "value": "", "type": "path", "description": "Enter the corresponding id for the ownerType specified above. For applications, use the public ID. For organizations, repositories, and repository managers, use the internal ID." } ] }, "docs": "Use this method to retrieve all role memberships with full details including role names, descriptions, and member information organized by owner (for inheritance display).\n\nPermissions required: Edit system configuration and users for a global context or view IQ elements for a non-global context" } ] } ], "bundled": true }