Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error accessing "Get user email" REST API with approved app

Irena Shemesh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 24, 2019

Hello,

our ACE app was recently approved to use new "Get user email" REST API. I made the following changes and tested locally, on my machine using credentials.json file to install the updated add-on on a Jira test instance:

1. Made sure the app key is the one the API was approved for

2. Added ACCESS_EMAIL_ADDRESSES scope

I tried to use the new API in two ways:

1. from the add-on front end code, using AP.require ['request']

When accessed this way I got error (approximate wording): "This endpoint can be accessed only by app not user".

2. I moved my code accessing the "Get user email" REST API to the back end and then got Forbidden (403)

Am I missing something that needs to be done for accessing the new API?

Do I see these errors because testing on local machine rather than installing add-on from the Marketplace? How can I verify access to "Get user email" REST API and my code works before deploying to production?

We user Jira Cloud REST API v2.

Thank you in advance.

Irena

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events