Forums

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

Is there a methodology to find confluence users who don't have any activity in Confluence?

amiram.fuerst
Contributor
June 18, 2020

We have 99 Confluence users. 

Our license is for 100.

I would like to identify users which are not active, meaning they don't have any activity in Confluence.

Is there a methodology for doing it?

2 answers

0 votes
repi
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 Leaders.
June 19, 2020
0 votes
Fabienne Gerhard
Community Champion
June 19, 2020

Hi @amiram.fuerst 

I know this trouble - depends on where you wanna start. I made good experiences tracking login of the users. We had people that didn't login for a very long time so... that means for me no activity at all. They got anonymous access for some parts - worked fine.

You may wanna check out this case. This works perfect for me!

I took the code from @Remo Siegwart

## @param group:title=Group|type=string|required=true|desc=The group you want to report on
#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($group = $userAccessor.getGroup($paramgroup))
#if($group)
    #set($usernames = $userAccessor.getMemberNames($group))
 
    <table class="confluenceTable">
        <tr>
            <th class="confluenceTh">User</th>
            <th class="confluenceTh">Last Successful Login Date</th>
        </tr>
        #foreach($username in $usernames)
            #set($user = $userAccessor.getUser($username))
            <tr>
                <td class="confluenceTd">#usernameLink($user.name)</td>
                <td class="confluenceTd">$action.dateFormatter.formatDateTime($loginManager.getLoginInfo($user).lastSuccessfulLoginDate)</td>
            </tr>
        #end
    </table>
#else
    <p><i>No group with name "$paramgroup" found!</i></p>
#end

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events