Hot answers tagged


Few things are missing Loading su.getSharedWithUsers() Calling ctx.executeQueryAsync() Modified code var ctx = new SP.ClientContext(_spPageContextInfo.webServerRelativeUrl); var list = ctx.get_web().get_lists().getById(_spPageContextInfo.pageListId); var su = SP.ObjectSharingInformation.getObjectSharingInformation(ctx, list); var sharedWithUsers = ...


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.

Only top voted, non community-wiki answers of a minimum length are eligible