Is there a way to provide read-only access across the entire workspace without having to do it project by project?.
Hello @Yariel Quintana and thank you for reaching out to Community!
Since the release of project permission, the simplest way of adding read access across all the workspace would be to create a user group, and assign this user group read permissions to each of the project workspace.
To add the user group to a project you can follow the below steps :
Once the read permission is given at the project level, this will be inherited by all the repos within that project. This just needs to be done once, meaning that new users added to that user group in the future will receive the read permission to all the projects (and their repos) where the group was added.
Hope that helps! Let us know in case you have any questions.
Thank you, @Yariel Quintana !
Patrik S
Thank you for your response, @Patrik S !
I understand that I can assign permissions to a user group in a specific project. However, my question is focused on the mass assignment of read-only permissions to a group across all projects in my workspace. The current configuration seems to require me to assign these permissions project by project, which is a time-consuming process. Is there any functionality or method that allows the bulk assignment of these permissions at the workspace level for all projects simultaneously?
I appreciate your further assistance and guidance on this matter.
Thank you in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Yariel Quintana ,
I'm afraid there's not currently an option in the UI to bulk assign permissions to groups across all the projects in the workspace.
An alternative would be to create a script that leverages the Bitbucket API to achieve this task :
curl --request PUT -u USERNAME:APP_PASSWORD --url 'https://api.bitbucket.org/2.0/workspaces/{workspace}/projects/{project_key}/permissions-config/groups/{group_slug}' --header 'Accept: application/json' --header 'Content-Type: application/json' --data '{ "permission": "read" }'
You can reference the Bitbucket Cloud API documentation for additional details on other available endpoints and authentication methods.
Thank you, @Yariel Quintana !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.