With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.
var MyDomain = new PrincipalContext(ContextType.Domain, "MyDomain"); GroupPrincipal grp = GroupPrincipal.FindByIdentity(MyDomain, IdentityType.Name, "MyGroupName"); foreach (var p in grp.GetMembers(true)) testing += p.Name + "<br>";
var MyDomain = new PrincipalContext(ContextType.Domain, "MyDomain"); UserPrincipal usr = UserPrincipal.FindByIdentity(MyDomain, Request.LogonUserIdentity.Name); foreach (var p in usr.GetGroups()) testing += "<br>" + p.Name;
Join the community of 500,000 technology professionals and ask your questions.