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 Friday in United States

Confluence Security Advisory

Good morning Members, Not sure if you are aware. Please read the following: https://www.icloud.com/keynote/0RyJ4VEdNUpjDpGfMhfZx9fEg#Confluence_Security_Advisor More details: https://co...

55 views 1 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