how to impersonate as user

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?

1 answer

0 vote

There exists a feature request to allow for this in Jira server REST API in

But that issue was closed in order to be tracked over in

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.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

244 views 1 18
Join discussion

Atlassian User Groups

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!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you