Forums

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

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

SWRD-Lastertech-Admin August 21, 2022

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

 

 

2 answers

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 29, 2022

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
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2022

Welcome to the Atlassian Community!

What do you mean by "page lock"?

SWRD-Lastertech-Admin August 22, 2022

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

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2022

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

SWRD-Lastertech-Admin August 24, 2022

Prepared for temporary use by third parties

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 24, 2022

Why would that need you to stop access to it?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events