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

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

            return(IsInOneOfThoseGroups(groups));
        }