4

Is it possible to get "Active Directory" groups and members using client object model in sharepoint2013?

If any one know please share your ideas. :)

1 Answer 1

1

No, AD groups and members are stored in AD, so SharePoint CSOM code is unable to enumerate those.

You need to query AD for these details e.g., like described here.

Using server side, you could utilize SP API for this, like described here.

4
  • so, is it possible in server side code?
    – SNGOKUL
    Commented Jul 24, 2015 at 9:24
  • Updated my answer
    – Jussi Palo
    Commented Jul 24, 2015 at 9:27
  • ok. I get user name and user id of logged user exist in AD Group..using client object model? then hw it possible?
    – SNGOKUL
    Commented Jul 24, 2015 at 9:31
  • Because SharePoint synchronizes certain user properties from AD to SharePoint User Profile Service, and you can query these user profile properties using CSOM.
    – Jussi Palo
    Commented Jul 24, 2015 at 9:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.