How we will get the all user directories

Hi,

How we will get the all user directories?

what is the bean name we need to use to get Ldap,Intenal With Ldap Authentication and Active Directory

below code we are using.

private DirectoryManager getDirectoryManager()

{

if (directoryManager == null)

directoryManager = (DirectoryManager) ContainerManager.getInstance().getContainerContext().getComponent(ldapDirectoryManager);

return directoryManager;

}

private DirectoryInstanceLoader getDirectoryInstanceLoader()

{

if (directoryInstanceLoader == null)

directoryInstanceLoader = (DirectoryInstanceLoader) ContainerManager.getInstance().getContainerContext().getComponent(directoryInstanceLoader);

return directoryInstanceLoader;

}

1 answer

Hi,

Try this:

ComponentAccessor.getComponentOfType(CrowdDirectoryService.class).findAllDirectories()

HTH,

Florin

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

60 views 4 0
View post

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