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?
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.