Identified in 5.16.3 and 7.18.2, the repository hooks API endpoint lists the permission for the GET method as REPO_READ. However, this conflicts with the repository permissions documentation, which states that the repository settings pages require Admin permission.
- Create user with read only permission to a repository
- Make a curl call to the hooks endpoint
(as per API documentation)
User should receive the hook settings for the repository.
The below exception is thrown:
The user requesting this endpoint must have Admin permissions to the repository as noted in our repository permissions documentation.