Retrieving Directories in Atlassian Crowd

Hi everyone,

I’m new to Developer Community as well as to plugin development and just getting started with Atlassian Crowd. I’m working on a minor project and need some help implementing functions to retrieve Directory information.

I want to create some functions for directories. Specifically, I need help with the following:

  1. Retrieve All the Directories Present in Crowd.
  2. Retrieve the Directory a User Belongs To.
  3. How can i implement search query on Directory.

I’m not very familiar with what to implement & how to implement Atlassian classes and methods. Could someone please guide me or provide examples to work on Directory? Any help or pointers would be greatly appreciated!

Thanks in advance!

Completed above