Username Check

ARTIFACTORY: How to check if config migration was successful

AuthorFullName__c
Andrew Roellig
articleNumber
000005890
ft:sourceType
Salesforce
FirstPublishedDate
2023-10-13T18:20:30Z
lastModifiedDate
2023-10-13
VersionNumber
3
1. Download the username list from both On-Prem and SaaS
# On-Prem Artifactory Username List
curl -u <username> <jfrogurlSelfHosted>/artifactory/api/security/users | grep "name" > on-prem-users.json

# Cloud Artifactory Username List
curl -u <username> <jfrogurlSaaS>/artifactory/api/security/users | grep "name" > cloud-users.json

2. Sort the two lists
sort on-prem-users.json > on-prem-users-sorted.json
sort cloud-users.json > cloud-users-sorted.json

3. "diff" the two files
diff on-prem-users-sorted.json cloud-users-sorted.json

If the diff command returns no results, it means the username lists are exactly the same for both SaaS and Self Hosted.