New answers tagged

6

You need to pass domain name with a user name like below code : string domainUser = @"domain\user"; if (Sitecore.Security.Accounts.User.Exists(domainUser)) { Sitecore.Security.Accounts.User user = Sitecore.Security.Accounts.User.FromName(domainUser,true); user.Delete(); }


Top 50 recent answers are included