Restriction for User Emails with OAuth 2.0

Hello!

I was wondering if there was a way to obtain user emails through the REST API endpoint (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-email-get).

I am running into an error that says I don’t have the required OAuth Permissions but I have read:jira-user configured in my manifest.yml, yet despite that I am still getting the error. Based on the documentation for scopes, I assumed I would have access to user emails. Are there any ways to get around this restriction?

Hello @DhananjaiSenthilkuma

That endpoint doesn’t return user emails, it returns user email ADDRESSES.

Also, that endpoint is not available to general OAuth 2.0 connections, only Connect apps, and they require Atlassian to approve that app, as per the endpoint documentation where it says:

Returns a user’s email address. This API is only available to apps approved by Atlassian, according to these guidelines

Scopes

CONNECT app scope required: ACCESS_EMAIL_ADDRESSES