Forums

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

How to get the Confluence logged-in user’s email in a macro

Prolaborate
December 18, 2025

We are testing a Prolaborate macro and need to retrieve the currently logged-in user’s email.
However, without additional permissions, we are unable to fetch the email.

  • When profile visibility permissions are enabled, it works.

  • When users keep their email hidden, the macro cannot access it.

  • Our macro should not ask users to grant extra permissions.

Is there any authentication-based method, built-in API, or alternative approach to get the logged-in user’s email in a Confluence macro without requiring profile visibility permissions?

 

Can anybody help me with this? 

1 answer

1 vote
Kristian Walker _Adaptavist_
Community Champion
December 19, 2025

Hi, 

Unfortunately, there are no other APIs, so getting users' email. What you are seeing is the behaviour that is intended, where users can hide their email due to GDPR regulations, and this is why Atlassian added account IDs so users could choose not to show their emails, which is considered PII. 

This means you can only retrieve emails if users choose to make it visible in their own personal settings inside Jira or Confluence. 

I hope this helps.

Regards,

Kristian

Prolaborate
December 20, 2025

Hi @Kristian Walker _Adaptavist_ ,

Thank you for the detailed explanation. Understood that there are no alternative APIs available and that email visibility depends on users’ personal settings due to GDPR and PII considerations.

This clarification helps and aligns with the intended behavior using account IDs.

Regards,
Arikrishnan

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events