A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?
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;
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.