{ "opencollection": "1.0.0", "info": { "name": "Sonatype Lifecycle Public REST Advanced Search Source Control API", "version": "1.201.0-02" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Source Control", "type": "folder" }, "items": [ { "info": { "name": "addUserMappings", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v2/sourceControl/automaticRoleAssignment/userMappings/:organizationId", "params": [ { "name": "organizationId", "value": "", "type": "path", "description": "Enter the organizationId. Use `ROOT_ORGANIZATION_ID` for the root organization" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Use this method to apply user mappings from SCM (GitHub) to Lifecycle. The user mappings will be inherited by all child organizations and applications in the organization hierarchy. If a user mapping for an organization already exists, it will be replaced with new mappings provided here.\n\nPermissions required: Edit IQ Elements" }, { "info": { "name": "deleteUserMappings", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/v2/sourceControl/automaticRoleAssignment/userMappings/:organizationId", "params": [ { "name": "organizationId", "value": "", "type": "path", "description": "Enter the organizationId." } ] }, "docs": "Use this method to delete existing SCM user mappings for an organization.\n\nPermissions required: Edit IQ Elements" }, { "info": { "name": "getUserMappingsByOwner", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v2/sourceControl/automaticRoleAssignment/userMappings/:ownerType/:internalOwnerId", "params": [ { "name": "ownerType", "value": "", "type": "path", "description": "Enter the value for ownerType." }, { "name": "internalOwnerId", "value": "", "type": "path", "description": "Enter the value for internal ownerId." } ] }, "docs": "Use this method to retrieve SCM user mappings for an organization or application.\n\nPermissions required: View IQ Elements" }, { "info": { "name": "automaticRoleAssignment", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v2/sourceControl/automaticRoleAssignment/:publicId", "params": [ { "name": "publicId", "value": "", "type": "path", "description": "Enter the public applicationId for automatic role assignment." } ] }, "docs": "Use this method to automatically grant the supplied role to all contributors of a repository on a given application.\n\nPrerequisites for automatic role assignment are: