Forums

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

login details reporting

Breana Skiles
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 1, 2016

I am looking for an easy way to determine the level of activity of my users.  I am trying to determine if the license amount we have is accurate.  is there an easy way to report on this?

1 answer

0 votes
Anne EQS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 2, 2016

HI, we're using this user macro by Remo Siegwart

## @noparams
#set($containerManagerClass = $content.class.forName('com.atlassian.spring.container.ContainerManager'))
#set($getInstanceMethod = $containerManagerClass.getDeclaredMethod('getInstance',null))
#set($containerManager = $getInstanceMethod.invoke(null,null))
#set($containerContext = $containerManager.containerContext)

#set($loginManager = $containerContext.getComponent('loginManager'))
#set($users = $userAccessor.getUsers())

<table class="confluenceTable">
    <tr>
        <th class="confluenceTh">User</th>
        <th class="confluenceTh">Last Successful Login Date</th>
        <th class="confluenceTh">Active</th>
    </tr>
    #foreach($user in $users)
        <tr>
            <td class="confluenceTd">#usernameLink($user.name)</td>
            <td class="confluenceTd">$action.dateFormatter.formatDateTime($loginManager.getLoginInfo($user).lastSuccessfulLoginDate)</td>
            <td class="confluenceTd" style="text-align:center;">
                #if($userAccessor.isDeactivated($user))
                    <img src="/s/en_GB/3047/11/_/images/icons/emoticons/error.png" width="18" height="18" border="0">
                #else
                    <img src="/s/en_GB/3047/11/_/images/icons/emoticons/check.png" width="18" height="18" border="0">
                #end
            </td>
        </tr>
    #end
</table>

 

more options, e.g. only display defined groups, in this answer: https://answers.atlassian.com/questions/33385

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events