Beispiel #1
0
        private bool HasRole(string role)
        {
            List <ADGroup> groups = ADHelper.GetADGroupsForRole(role);

            return(IsInOneOfThoseGroups(groups));
        }
Beispiel #2
0
        public bool HasRole(string role, List <string> adGroupName)
        {
            List <ADGroup> groups = ADHelper.GetADGroupsForRoleOrCreate(role, adGroupName);

            return(IsInOneOfThoseGroups(groups));
        }