Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Git command line to authorize user/group to bitbucket repository (permission)

fstheoh March 14, 2019

Does anyone know the Git command line to add user/group into bitbucket repository?

 

Thank you

2 answers

1 vote
Mikael Sandberg
Community Champion
March 14, 2019

Hi Herman,

Git does not have a command for adding users/groups to a repository. Git does not handle permissions, that is where Bitbucket comes in.

To add the users/groups to the repository in Bitbucket you can use the REST API, take a look at /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/permissions/groups and /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/permissions/users These ones are for Bitbucket Server, you can find the REST API for Bitbucket Cloud here.

0 votes
fstheoh March 15, 2019

Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events