Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Massively script/set permissions on repositories ?

Yannick Biet April 27, 2022

Hello

 

We migrated 440+ repositories yesterday from server to cloud edition.

Is there a massive way to script/use a product to setup the permission scheme ?

 

On server, previously we setup the permissions on project level and so all repos inherited their permissions from the project permission scheme.

 

Now it seems I need to manually re-enter 440 permission scheme (99.99% will be the same)

 

Has anyone already faced the question ? Thanks for the help in advance

1 answer

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

Hi Yannick,

You could use our API to script this. Version 2 of our API doesn't provide endpoints for user and group management, so we still offer temporary support to certain 1.0 API resources for that purpose.

On this documentation page, you can see the endpoints and examples for
- creating a new user group
- adding a member to a user group

This page includes the endpoint for adding a group to a repository.

If you have any questions specific to your use case, please feel free to let me know.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events