towel
towel

Reputation: 2214

Artifactory REST API gives a forbidden 403 error when querying own repository

I have a docker repository in Artifactory which I want to replicate:

However, when I configure replication for the repository using the new user's credentials I get a forbidden 403 error. I can access the repository via the UI, but when I try to use the REST API I also get a forbidden 403 error, so I figured that this was the root of my problem. Using the admin account works (curl -X GET -u admin:pass artifactory-url/artifactory/api/repositories/my-repo).

Upvotes: 1

Views: 6922

Answers (1)

Dror Bereznitsky
Dror Bereznitsky

Reputation: 20386

The REST API method for setting repository replication configuration requires a user with admin permissions. You can see the required permission in the API documentation.

Upvotes: 1

Related Questions