1

i have one question about the SP Groups and AD Groups. I'm trying to get all AD Groups which are in one SP Group inserted in SP. I'm trying to get them in C#. For example: When i have SP Group Customers, and I added an AD Group into Customers, how can i get the AD Group from Customers in C#? Thank you. Cheers

1 Answer 1

1

Assuming what MSDN says about the Users property of SPGroup you should loop this collection to get a list of all entries. Then filter on domain property

SPGroup group ...
foreach (SPUser user in group.Users)
{
 if (user.IsDomainGroup)
0

Your Answer

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

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