It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Querying Active Directory for specific user data

I would like to have a list (i.e. a table) with all phonenumbers of our users. But not all users are confluence users.

Is there a way to query an actice directory and build a dynamic site in confluence??

 

Kr,

Christoph

3 answers

0 votes
Davin Studer Community Leader Nov 05, 2014

Could you please clarify your question? Are you asking about putting user phone numbers into their profiles from Active Directory?

Hi David,

not putting into their profiles. I am using a LDAP query to get our confluence users from a specific OU.

Now I want to query the whole AD to get the phonenumbers of all users Independent of the confluence users.

In a confluence site I would like to have a table with Names and numbers of all AD users.

So far, I found out that an AD can be queried by Standard SQL Statements and there is a addon called "SQL for Confluence".

0 votes
Davin Studer Community Leader Nov 06, 2014

Yes, you could do it with the SQL plugin by querying AD. One thing to note if you are on a Windows 2008 domain your AD query cannot return more that 901 records or it will fail. I think if it is a 2003 domain it is 1000 records. It is a hard limit in AD that has to do with paging. So, you will need to cut up your query into multiple queries that return 901 or less records. Then you would union all of the queries together. I have done this in our environment by creating a view with multiple select statements unioned together to get the full result. This is also very slow. So, we have created a SQL job that will populate a real table with the information every 15 minutes. So, you could user the slow view that has realtime data or the fast table that is 15 minutes out of date.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

3,932 views 15 38
Read article

Community Events

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

Events near you