I would like to impersonate as user and retrieve few details like createmeta using rest api in Jira server.
In cloud, we have jwt oauth bearer token to achieve this. Is there any way to achieve this in Jira server?
There exists a feature request to allow for this in Jira server REST API in https://jira.atlassian.com/browse/JRASERVER-40913
But that issue was closed in order to be tracked over in https://ecosystem.atlassian.net/browse/AC-1080
While that issue has been resolved, it looks like this implementation was only created for the Atlassian Connect framework, which is only provided at this time to our Cloud offerings.
That said, I am aware of a pair of Jira Server plugins that will allow you to impersonate other users in Jira, provided you are the Jira administrator:
I realize these may not be exactly what you are looking for since these effect what is seen in the web interface versus a REST API call. However my thought was that you might be able to use one of those plugins in conjunction with the Atlassian REST API Browser plugin. At least that way you might be able to make a rest call as that user, granted it would have to be in the browser session in order to do this, but it could work. I am not sure if this is really what you are looking for though, I could see if you were looking to automate this REST call for one reason or another this path might not be a viable solution.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot