Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,330
Community Members
 
Community Events
168
Community Groups

Does bitbucket have a function or plugin for page lock time period + number of times?

Edited

bitbucket 是否有页面锁定时间段+次数的功能或插件?

 

 

2 answers

0 votes

Hi @SWRD-Lastertech-Admin,

If you are looking to prevent users from changing the source code during a specific time frame, we don't have such a feature available out of the box.

You can temporarily change the permissions of users and user groups to a certain repository to Read (this way they won't be able to change the source code of the repo), and then switch back to the original permissions.

You can do it from the Bitbucket website, if you open a repo then go to Repository settings > User and group access

Alternatively, you could also use our APIs to write a script and change the permissions to Read (and then change them back to the original permissions):

https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-groups-group-slug-put

https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-users-selected-user-id-put

Kind regards,
Theodora

0 votes

Welcome to the Atlassian Community!

What do you mean by "page lock"?

Maybe there is a problem with my expression, the code base needs to be locked for a limited time, or the user needs to kick out the specified code base regularly。

Excuse me for the translation software I use

Why would you need to stop people using it for a time?

Prepared for temporary use by third parties

Why would that need you to stop access to it?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,494 views 3 10
Read article

Atlassian Community Events