Our app is dependent on getting user emails. We are fetching emails using user_account_id when customers install our App for the first time.
When we are calling following API to get user's email:
We are getting 401 Unauthorized error with HTML response.
We are calling this API as documented here (https://developer.atlassian.com/cloud/jira/platform/rest/v3/?_ga=2.238660480.1263124937.1593510644-624183373.1586256627#api-rest-api-3-user-email-get)
We are creating JWT token and passing it in the header for authentication.
We have added ACCESS_EMAIL_ADDRESSES scope for our app.
For few users we are getting email address with 200 OK response. But for some users, we are getting 401 Unauthorised error.
Thanks for your help!
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events