Hello,
We are creating an Atlassian connect app that will use the rest apis to get information about the boards and epics for a given account. We have been able to use the data in the app installation callback to generate a `jwt` token, and then following this guide, create an access token to impersonate a user and obtain the data we want.
But! So far the only way we have been able to obtain the `useraccountid` to generate the `jwt` is by visiting the profile page of a user and copying the value out of the url. How do you programmatically obtain this value for a given user? Do you have to send the user who you wish to impersonate through an oauth process? Or, as an installed connect app, is there a way to find an `useraccountid` for a given user using an api?
Thanks
Follow up to this. From reading through this issue, https://ecosystem.atlassian.net/browse/AC-2442, we were able to get the app installers useraccountid and user_key from the installation callback and signing a jwt with either of these worked - we are able to find other users information on the `/rest/api/3/user/search` endpoint. But this still doesn't feel like a great flow for all users - I was expecting to ask users to perform an oauth-like flow before I would be able to impersonate them on the rest APIs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.