Since the Confluence DC REST API is not capable of anything useful, I already realized that I need to do most stuff using SQL.
What I'm currently struggling with is to get the "Last Login" datetime of a user from the DB. Confluence stores this info somewhere, since it displays the correct information in /admin/users/viewuser.action, but I can't find that record in the DB.
I read it multiple times that this info should be in table 'cwd_user_attribute', but there seem to be only records from local user directories, such as the "Confluence Internal Directory", for example. Our users are from a "Atlassian Crowd" Directory (which is configured to use our JIRA instance as Crowd server).
Where can I extract these login times from using SQL? Do I have to look it up in Jira, or is it stored in the Confluence DB but elsewhere?
We actually use scriptrunner to determine who hasn't logged in for a period of time and we disable them. Look at this sample: https://scriptrunner.adaptavist.com/5.0.8/confluence/ScriptConsole.html
Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events