public static SecurityIdentifier GetSIDFromName(string name) { NTAccount ntAccount = new NTAccount(name); return (SecurityIdentifier)ntAccount.Translate(typeof(SecurityIdentifier)); }