Forums

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

Inactive users Confluence

Valeriy February 28, 2018

Hi!
I used this instruction, but I could not get a list of inactive users
https://confluence.atlassian.com/confkb/how-to-identify-inactive-users-in-confluence-214335880.html

I get the error message
Msg 207, Level 16, State 1, Line 3
Invalid column name 'username'.
Msg 207, Level 16, State 1, Line 6
Invalid column name 'successdate'.
Msg 207, Level 16, State 1, Line 1
Invalid column name 'successdate'.

2 answers

0 votes
Igor M.
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 1, 2018

Hello,

 

Can you confirm which version of Confluence you are running this against? 

Column username does not exist in the version above 5.2, so you need to use the second option of KB, like this:

SELECT u.user_name, d.directory_name, l.successdate
FROM logininfo l
JOIN user_mapping m ON m.user_key = l.username
JOIN cwd_user u ON m.username = u.user_name
JOIN cwd_directory d ON u.directory_id = d.id
WHERE successdate < '2016-01-01'
ORDER BY successdate;

I tested this on my 5.10.* and it returns results 

0 votes
Steven Behnke
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.
February 28, 2018

Pardon, but this is elementary. Ensure your column names are cased appropriately. IE SUCCESSDATE =/= successdate. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events