Programmatically elevating user permissions temporarily

Aris Kourtesas October 31, 2019

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
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 31, 2019

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