In our team project have many repositories, sometimes a new member or group join the team project, I have to grant access for them in all repositories.
It not a good idea to add access to repositories one by one, so is there any script or method to add user/group access to a list of repositories?
You can create a user group and make it so every user with access to that group has permissions to all the repositories in the team. You can also make it so every time you create a new repository, the members of that group will get access to it by default.
Then every time you get a new member, you just need to add him to that user group and he'll automatically have access to all the repos. For more information, you can read Create and grant access to team repositories.
Hope that helps!
I don't want one group can access all repositories. For example group A only get access to repositories of project A. Then we have a new group B, they need to access to some repositories of Project A, not all. So I have to add access for them in the list of repositories provided by them.
I'm looking for a script, it will loop by list of repositories and grant access to the new group.
When you create the group, you decide which repositories will it be able to access. So you can create one group with access to all the repos in project A, and then another group with access to only some of the repos from project A. When you get a new user, you decide to which group you add him.
Regarding the script, I'm not sure what you want to achieve with it. In any case, please note that we won't be able to provide you with one, but you can find all the info and references at Bitbucket Cloud REST API.
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events