I'm currently having an issue with SPUtility.GetPrincipalsInGroup, I've search here and on Google but I haven't found any explication for this behavior. I use the method to list Users that are part or the given AD Group but it seems that this method does not work for every group. It work very well for any AD group that I created myself but its does not work for the group "Domain Users" which was created automatically by the server. The method always returns and empty array, even if all the users created on the domain are automatically added to this group.
Anyone has can explain why it behave like this. Is there a difference between this group and the groups I created that I am not aware of that would explain this?
Thanks a lot.
Edit, I thought I found a way to do it but it only worked when using Windows Authentication, it didn't work at all when using Claims...
I'd still love to know the reason why SPUtility.GetPrincipalsInGroup won't work with "Domain Users" though =D It IS a Security Group from Active Directory so in my understanding it should work. Anyone know why it doesn't?