ARTIFACTORY: How to restrict the published builds visibility to non admin users using permission target

ARTIFACTORY: How to restrict the published builds visibility to non admin users using permission target

AuthorFullName__c
Dinesh Kumar
articleNumber
000006197
ft:sourceType
Salesforce
FirstPublishedDate
2024-10-06T12:18:11Z
lastModifiedDate
2024-10-06
VersionNumber
2

This article speaks about restricting the visibility of published builds to non-admin users using permission targets. 

Below are the steps to achieve the usecase. 
-> Create a permission target and add the required builds from the Artifactory UI by Build Name or Pattern option as below.

User-added image
User-added image


-> Add the required non admin users and provided the needed permissions on the corresponding selected builds. We can also use the groups option to allow for specific groups having list of users.

User-added image
User-added image


-> After the above permission target created, we will see only the selected builds acces to the respective nonadmin user from the builds section and also under the “artifactoy-build-info” repository.

User-added image
User-added image


Please note that “Allow Basic Read of Build Related Info” option is disabled to have the restriction or visibililty of published builds to work as expected. Because the “Allow Basic Read of Build Related Info”, when enabled, gives all users (including anonymous users) view permissions to published modules for all builds in the system. This is regardless of any specific permissions applied to a particular build.

User-added image