Forums

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

Login information

松本優子 July 26, 2019

Can I get login information (list) of invited users?

For example, information such as last login date and 30 days not logged in.

If possible, can you tell me how to get it?

3 answers

1 vote
Nic Brough -Adaptavist-
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.
July 26, 2019

Not invited, that just sends an email without recording a new user (as they may never log in, there's no point)

But active users are listed in the user section of the admin menus.  You might want to look at the sessions section too.

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.
July 29, 2019

Here is a User Macro as a little help

## Macro title: Last Login
## Macro has a body: N
## Body processing: Selected body processing option
## Output: Selected output option
##
## Developed by: Andrew Frayling
## Date created: 11/02/2012
## Installed by: repi
## Macro to display the last login date of users who have access to the current space
## @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</th>
</tr>

#foreach($user in $users)
## list the last login date of users who can view the current space
#if ($permissionHelper.canView($user, $space))
<tr>
<td class="confluenceTd">#usernameLink($user.name)</td>
#if (!$loginManager.getLoginInfo($user).lastSuccessfulLoginDate)
<td class="confluenceTd" style="background-color:#ff0000"><strong>NEVER</strong></td>
#else
<td class="confluenceTd">$action.dateFormatter.formatDateTime($loginManager.getLoginInfo($user).lastSuccessfulLoginDate)</td>
#end
</tr>
#end
#end
</table>
0 votes
Max Malygin
Contributor
July 26, 2019

You can get this information by SQL query to Confluence Database.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events