简体   繁体   English

如何通过Git控制用户对Bitbucket的访问?

[英]How to control user access to Bitbucket through Git?

I am migrating a project from SVN to Bitbucket. 我正在将一个项目从SVN迁移到Bitbucket。

Now I need to give access permissions to a list of users that I have as a list of username and password in a text file. 现在,我需要将访问权限授予一个用户列表,该列表作为文本文件中的用户名和密码列表。

How can I do that in Bitbucket without manually adding each user? 如何在Bitbucket中做到这一点而无需手动添加每个用户?

The best way to do it is to use Groups. 最好的方法是使用网上论坛。

If your bitbucket is connected to LDAP (standalone or via JIRA) you can grant or prevent access using those groups. 如果您的位桶连接到LDAP (独立或通过JIRA),则可以使用这些组授予或阻止访问。

在此处输入图片说明


If you don't have LDAP groups you can use git hook which will read the list of users form file and will verify if the user is allowed to perform the desired task. 如果您没有LDAP组,则可以使用git hook,它将读取用户表单文件列表并验证是否允许用户执行所需的任务。 for example in your pre-receive hook. 例如在您pre-receive挂钩中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM