Forums

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

Users methods to retrive its data

Moutaz mohammad March 9, 2022

I have the code that make a loop to get all the users and form them in HTML Table .

#foreach ($username in $userAccessor.getUserNamesWithConfluenceAccess()) // Here is a loop to get all the users
#set ($fullName = "-")
#set ($email = "-")
#set ($phone = "-")
#set ($abbreviation = "-")
#set ($location = "-")
#set ($im = "-")
#set ($firstname = "+")

#set ($user = $userAccessor.getUserByName($username)) // to get the specified user and store its data
#set ($fullName = $user.getFullName())
#set ($email = $user.getEmail())
#set ($firstname = $user.getGroup())
#set ($phone = $userDetailsManager.getStringProperty($user, "phone"))
#set ($abbreviation = $userDetailsManager.getStringProperty($user, "cn"))
#set ($location = $userDetailsManager.getStringProperty($user, "location"))
#set ($im = $userDetailsManager.getStringProperty($user, "im"))
#set($userPicture = $userAccessor.getUserProfilePicture($user).getDownloadPath())
#set($userPicIsDefault = $userAccessor.getUserProfilePicture($user).isDefault())

 

the question : how could i get the all methods to retrive all users data such as $user.getEmail() , $user.getFullname(). .. etc.

 

Thanks in Advance

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events