How to retrieve authenticated user's email address in Jira Cloud API

I’m struggling to fetch the email address of the currently authenticated user in Jira Cloud. I’ve tried a couple of approaches but haven’t been successful.

First, I looked into using OAuth with OpenID Connect to get the email scope, but it seems Jira Cloud doesn’t support the OpenID protocol for this purpose.

I also attempted to use the REST API endpoint for getting user information, but that approach requires knowing the email address beforehand, which defeats the purpose since that’s exactly what I’m trying to obtain.

Is there another API endpoint or method I can use to get the current user’s email address? Any suggestions would be helpful.

The /rest/api/3/myself endpoint is correct, but here’s something others missed. I ran into an issue where the email field came back null even with proper permissions. This happens when users restrict email visibility in their profile settings. Corporate Jira instances often have privacy settings that block API data. If you hit this, you’ll need to ask your Jira admin to adjust privacy settings or find another approach for your use case.

Had this same problem a few months ago. Use the /rest/api/3/myself endpoint - it’ll give you the current user’s profile info including their email without needing to know it upfront. You’ll get back accountId, displayName, emailAddress, and other profile stuff. Just make sure your auth token has read permissions for user data. I’ve used this with both basic auth and OAuth 2.0 and it works great. The docs say emailAddress is optional, but I’ve always gotten it back on Cloud instances when permissions are set right.

totally agree, /rest/api/3/myself is the way. use your bearer token and you’ll fetch the user’s info, email included. gotta say, Jira’s docs can be a lil’ confusing sometimes, I had similar issues too when I started out.