javascript active directory user / groups query

active-directory, javascript, sharepoint

Solution

I think you'd be better off writing a quick asp.net page that you could call via AJAX and get some JSON back. .NET directory services class are going to be much better at talking to Active Directory than javascript, unless you can find a js library specifically for this (which I haven't been able to find).

Problem

Is it possible to query AD from javascript? I'm working from within SharePoint, and I can get the current SharePoint user's information using some js I found on a blog. But I'm wondering if I can then query AD to see if the current user is in a specific AD group.

Original source