Why do I get a "401 Unauthorized" response from my Artifactory online server?

Why do I get a "401 Unauthorized" response from my Artifactory online server?

AuthorFullName__c
JFrog Support
articleNumber
000001207
ft:sourceType
Salesforce
FirstPublishedDate
2016-10-06T13:38:04Z
lastModifiedDate
2016-10-06
VersionNumber
6

There are 3 main reasons that you would receive a "401 Unauthorized" response when interacting with Artifactory Online:
 

1. If the username or password is incorrect.
2. If the password encryption policy is set to "required", but the user uses a non-encrypted password.
  • This policy can be configured at Artifactory -> 'Admin' tab -> 'Security' -> General -> 'Password Encryption Policy'.
3. If you do not have appropriate permissions 

For example, this would occur if the initial Dashboard Artifactory user does not have permissions to run REST-API and build requests. You should create a regular Artifactory admin user in order to use the REST-API and/or handle build requests. Please visit Managing Passwords for more details.