Hi,
Per my knowledge, SharePoint not provide CSOM API to achieve this requirement.
As a workaround, we can create a custom REST service with Server Object Model to achieve it, then call the REST service in client side.
bool reachedMaxCount;
SPWeb web = SPContext.Current.Web;
int limit = 100;
string group = "Domain\\SecurityGroup";
SPPrincipalInfo[] users = SPUtility.GetPrincipalsInGroup(web, group, limit, out reachedMaxCount);
SharePoint 2013: Create a Custom WCF REST Service Hosted in SharePoint and Deployed in a WSP
https://social.technet.microsoft.com/wiki/contents/articles/24194.sharepoint-2013-create-a-custom-wcf-rest-service-hosted-in-sharepoint-and-deployed-in-a-wsp.aspx
More information:
https://social.technet.microsoft.com/Forums/ie/en-US/4b355232-10e4-4b29-81af-ece6ef12a0c7/get-ad-domain-group-using-client-object-model?forum=sharepointgeneralprevious
Best Regards,
Dennis
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact
tnmff@microsoft.com