Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Edit JIRA Project Permissions in Python

Edgar Oregel
Contributor
June 5, 2018

Is there a jira function/method that allows you to edit a project's permissions, i.e. adding/removing roles in the permission scheme, through a python script? 

1 answer

0 votes
Francisco Oselame
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 18, 2018

Hello Edgar!

 

There's indeed a Python library for Jira with some features and methods:

However, using REST API we do have an endpoint to add/remove roles in the permission scheme:

You can use the Python library to call this endpoint and perform API calls on this endpoint and achieve what you're looking for.

 

Does that help in your case?

Thanks,

Francisco Oselame

Edgar Oregel
Contributor
June 18, 2018

I think that's pretty close. What I was wondering was if that Jira-Python library, after creating a JIRA instance, is there an internal function that allows you to do something to the effect of jira_object.grant_user_permission(<user>), and the same for all other JIRA permission actions. 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Jira Events