Method 2: Restricting UI access from the JFrog platform

XRAY: How to restrict users only to access Xray through REST API without providing UI access

AuthorFullName__c
Shashwath Rai
articleNumber
000005513
ft:sourceType
Salesforce
FirstPublishedDate
2022-12-21T07:55:22Z
lastModifiedDate
2023-01-22T11:07:26Z
VersionNumber
2
To perform some Xray REST API action we do not have restrictions that the user needs admin access, in such cases we can use this method. Based on the requirement we can provide the manage resources, policies and watches level of access. If you want to restrict any existing user in an Artifactory from accessing UI you can simply disable UI access for that particular user. Go to administration → Identity and Access → Users → Click on the user and can select Disable UI Access.

User-added image

Example to use username and password for REST API authentication.
  curl -u<USERNAME>:<PASSWORD> <Xray url>/xray/api/v2/watches