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
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.