I want to create a security identifier for AccountDomainUsersSid . The problem is that I cannot figure out how to get the sid for the current domain (i.e. the Domain that the current user is connected to).
var sid = new SecurityIdentifier(WellKnownSidType.AccountDomainUsersSid, );
source share