2

I have written some JavaScript code to get all groups and their users with permissions to a SharePoint list. Beside SharePoint groups there are also AD groups with permissions. The Problem is, that I can't query the users of AD groups. Afaik there is no solution to do this with JavaScript. What is the best method to get the users of an AD Group? Do I need some Kind of web Service? I need to get the AD Group users to my JavaScript code.

Sorry for my broken English and thank you for your help.

1 Answer 1

2

Using JSOM you can find out whether the user is a domain user or not.

But there is no JSOM method available to expand a domain group and find the users. If you want to stick with JavaScript then you should create a web service, that can give you the information.

Deploy the web service under SharePoint context and use AJAX for getting the data.

2

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.