It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Programmatically elevating user permissions temporarily

I have a custom script that creates some new issues. One of the step it does is to copy over the assignee of the issue.

At the same time I have an issue permissions that dictates that this action can only be performed by users with elevated rights. This in turn means that not all users can properly use that function.

Ideally I do not want to give those user said permissions but I want my script to do it temporarily for them.

Is there any way of giving a specific permission to a user for a given project and revoking once done in a programmatic manner?

1 answer

0 votes

I don't think so.

Instead, you may want to run the script on behalf of a super-user (not the currently logged-in user).

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

308 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you