Can I get user login data in Confluence page.

I am planning to get live data of user who did not login to JIRA / confluence via Crowd . I understand that this data can only be fetched from the database via sql query. 

Can this fetched data be displayed in confluence in a readable format.

1 answer

1 accepted

Assuming that you are using JIRA as the user server for confluence, these users will also be available in the confluence database. Start by defining the db server as a datasource in confluence.

Once the source is added to server.xml and you can run a query against it, a query like this will display all fields of the user database-table:

select * from cwd_user;

You can of course narrow down the query to only show active users:

select * from cwd_user where active='T';

Using crowd you will have a internal directory, and a JIRA user service, meaning users will be seen twice. Once more by adding "and directory_id=" and the ID number of your user directory ID (which you will see in the first query here).

 

Good luck!

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published yesterday in Confluence

Think you know shares vs. @mentions in Confluence? Take this collab quiz.

To anyone who doubts that Atlassians are a little too obsessed with collaboration, and tools related thereto, let me describe a recent discussion we had (which took place on our internal Confluence, ...

107 views 2 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you