Hi I'm trying to get the email address of a user with a supplied username. I've been looking on here: https://docs.atlassian.com/atlassian-confluence/6.6.0/
But I haven't been able to find what I'm after.
I'm able to get the users name and profile pic, but I'm stuck on email, so if anyone could point me in the right direction that would be great!
#set($displayName = $action.getUserFullName($paramUsername))
#set($userPic = $userAccessor.getUserProfilePicture($userAccessor.getUserByName($paramUsername)).getUriReference())
What I'm trying to do but this class doesn't exist :D
#set($email = $action.getEmail($paramUsername))
Thanks!
Hi @HH
You are on the right track with the userAccessor:
$userAccessor.getUserByName('dominic.lagger').getFullName() <br>
$userAccessor.getUserByName('dominic.lagger').getEmail() <br>
getUserByName gives you an ConfluenceUser. There ou can call getEmail()
Regards, Dominic
That's great - thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.