I was wondering if it is possible to restrict the credentials of a user to only allow to perform REST API calls (ideally selected ones).
I would like to restrict the user created for Jenkins purposes on to be able to:
Thanks.
Short answer is - no. There are no specific permission for the REST api.
In details:
The authenticated user must have REPO_WRITE permission for the repository that this pull request targets to call this resource.
So, you must give a write access to the user in order to trigger a post-receive hook
The authenticated user must have LICENSED permission or higher to call this resource.
So you can use a user with minimal permissions