From the Confluence java API, how do I determine the user's directory?

I'm writing a REST API call to determine the number of active Confluence users. To do this, I need to differentiate LDAP users from those in the internal directory. How would I do that?

1 answer

0 votes
Ann Worley Atlassian Team Nov 28, 2017

I have not been able to find or hack a REST API call that will return the user directory the user belongs to. I tried the . dot notation and expand query parameter mentioned in Confluence REST API Documentation but was not able to retrieve user directories or a list of more than one user.

If you have access to the Confluence database you may get a list of active users and their directories using the queries on this page:

How to get a list of active users counting towards the Confluence license

The results look like:

Screen Shot 2017-11-28 at 12.15.27 PM.png

If you find a way to get the information you seek with REST, please post it here to help the next person who needs a list like this.

Thanks, Ann. I couldn't find a way either so I'm looking at writing my own. I'm wondering how to find the directory information from the Java API.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published 3 hours ago in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

69 views 0 9
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