public IsInGroup ( System.DirectoryServices.AccountManagement.UserPrincipal adUser, string groupName ) : bool | ||
adUser | System.DirectoryServices.AccountManagement.UserPrincipal | The user |
groupName | string | The ID of the group to check for membership |
return | bool |