MC API - How to get all directory User / Group entries

Solved
OA
Ozan Acikalin
JAMBO GmbH

Hi,

my coworker is working with the api's of MC. He wants to get all user or group entries
out of MC.

In the API documentation are 3 entries to get informations about the directory users/groups.

  • /directories/{directoryConnectionName}/entries

  • /directories/connections

  • /directories/entries

I guess the third one is necessary to get all users  and/or groups from the directory.

The problem is that we dont know which values it need.

  • searchString: for example uid?
  • memberOf: ???

We are using OpenLDAP as a directory.

I hope i was able to explain our little problem. If not then you can ask specific questions.

Thank you!

5 years ago
SOTI MobiControl
ANSWERS
D
DDMOD@SOTI
5 years ago

Hi Ozan,

Thanks for an interesting question.

SearchString is the text value of the user (or group) you are searching for in their Directory system.

MemberOf is an optional value that limits the search to users or groups that are a "member of" a group (or groups) you define.

Regards,

Solution
OA
Ozan Acikalin
5 years ago (edited 5 years ago)

Hi DDMOD

thanks for your reply.

If I understand you correctly then I will get only one user with that search.

But my goal is it to get a list of all of my users from my directory.

Is it even possible to use a variable for the text value to get all users (or groups) in my directory system?
Or do I have to work with a different API?

J
JVMOD@SOTI
5 years ago

Hello Ozan,

Thank you for your response, in "type" section, select Group instead of User.

Regards,

D
DDMOD@SOTI
5 years ago

Hi Ozan,

Using a MobiControl API to pull all users and groups is not a good idea. The customer should use their script on Windows commands or application to pull users and groups from their LDAP and then use that information to invoke our API.

Regards,