Forums

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

How to access the user email and user name using AJS in Jira Service Desk Cloud/ Confluence Cloud?

Vijay Cinnakonda March 6, 2020 edited

I am using the refined site for the customer portal for Jira Service Desk Cloud /Confluence Cloud?. I was trying to extract the loggedin user email and pass it on using AJS. Is there a way to access the loggedin user email using AJS?

 

I have tried based on earlier answers I saw, but I dont think userDisplayName is a property that can be accessed within the cloud?

<script>
(function($) {
AJS.toInit(function() {
alert(AJS.$.params.userDisplayName);
});
})(AJS.$);
</script>

 

Thanks in advance!

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 20, 2020

Hello @Vijay Cinnakonda ,

I am not sure if this question is related to the refined add-on or is a generic Jira Service Desk development question. 

However:

Once this has been said, please notice that Atlassian made a number of changes to our products and APIs to improve user privacy in accordance with the European General Data Protection Regulation (GDPR) and this resulted in:

  1. The removal of user names (replaced by the Account-ID) 
  2. Jira Users email address will be visible or not depending on their Profile Visibility Settings 
  3. Service Desk Agents can see portal only customers' email addresses

 

For details see:

 

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events