Forums

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

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
AUG Leaders

Atlassian Community Events