Home > Forum > Data sources > Active Directory Contacts as Data Source

Active Directory Contacts as Data Source
0

MVP

Hi Martin,

my best bet is to create a plugin with "Custom Data Source"
Depending on the frequency, how often it is used, it may be better to write the contacts to a custom database and retrieve them from there. Of course this has the drawback, that you need to sync it with the AD. I would probably use a simple PS script which is executed on a schedule.
https://github.com/sqlcollaborative/Invoke-SqlCmd2

An other idea would be to use the LDAP option as an authentication provider. I haven't used it and I wouldn't change the authentication provider in an running environment.

Best regards,
Daniel

MVP
In reply to: Martin Meze (Freelancer)

Hi Daniel,

Not the answer I was hoping for. It would be nice if I could just use the existing AD functionality as in the attached image or something similar. Maybe an API or something?

Sorry, I forgot about this one. I currently have no access to an environment which uses AD authentication. :)
Did you check whether your filter returns any results outside of WEBCON BPS?
For example using PowerShell
https://lazywinadmin.com/2013/10/powershell-using-adsi-with-alternate.html

Or Softerra Ldap browser?
https://www.ldapadministrator.com/download.htm#browser

Best regards,
Daniel

MVP
In reply to: Martin Meze (Freelancer)

Hi Daniel,

Using the AD query directly in the Management Console (Active Directory Users and Computers) on the server I get the desired records. If I use the same query in Designer Studio, I get an error. Both images attached.

Hi Martin,

It's just a guess but I believe that you get the error message because the result will be "transformed" to users. Since there is no user object you receive this error.

Did you try to combine the two queries so that you retrieve 'normal' persons as well as contacts? If my guess is correct, you still won't see the contacts.

Best regards,
Daniel