-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
I would like to get all ssh keys of users that are in a group
I can list of all users in a group using access token like so
curl -H "Authorization: Bearer $TOKEN" 'https://$SERVER/rest/api/1.0/admin/groups/more-members?context=$GROUP' | jq
But when i try to get a SSH key for a single user with the same token then I get a permission error.
curl -H "Authorization: Bearer $TOKEN" 'https://$SERVER/rest/ssh/1.0/keys?user=$USER' | jq { "errors": [ { "context": null, "message": "You are not permitted to access this resource", "exceptionName": "com.atlassian.bitbucket.AuthorisationException" } ] }
Changing permissions when creating the access token does not change anything.
We are using Atlassian Bitbucket v6.2.0