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

This widget could not be displayed.

Hi,

Try this:

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

HTH,

Florin

Suggest an answer

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

Local Atlassian Research Workshop opportunity on Sep. 28th

We're looking for participants for another workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sh...

46 views 0 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