Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Get AD domain group using client object model

$
0
0

Hi,

       I am trying to get all the groups(including AD Domain groups) from share point 2010

site collection , able to get the sharepoint groups but not the Active Directory domain groups.

below code is what I am using to fetch the groups.

code :

 var collGroup = _ClientContext.Web.SiteGroups;
                _ClientContext.Load(collGroup,
                                    groups => groups.Include(
                                    group => group.Title,
                                    group => group.Id,
                                    group => group.Users.Include(user => user.Id,
                                                                 user => user.Title,
                                                                 user => user.LoginName)));

                _ClientContext.ExecuteQuery();

      

Thanks,

Praveen .

  


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>