API Reference
IdentityWellKnown
Well-known identity helpers that operate on SIDs, not localized names. Use these methods to perform culture-invariant classification and checks.
Inheritance
- Object
- IdentityWellKnown
Methods
public static PrincipalKind Classify(SecurityIdentifier sid) #PrincipalKindClassifies an identity reference to a PrincipalKind.
Parameters
- identity System.Security.Principal.IdentityReference
Classify(System.Security.Principal.SecurityIdentifier sid) #Classifies a SID to a PrincipalKind.
Parameters
- sid System.Security.Principal.SecurityIdentifier
public static Boolean IsAnyOf(SecurityIdentifier sid, IEnumerable<PrincipalKind> kinds) #BooleanReturns true if identity belongs to any of the provided kinds.
Parameters
- identity System.Security.Principal.IdentityReference
- kinds ADPlayground.Identity.IdentityWellKnown.PrincipalKind[]
IsAnyOf(System.Security.Principal.IdentityReference identity, System.Collections.Generic.ISet{ADPlayground.Identity.IdentityWellKnown.PrincipalKind} kinds) #Returns true if identity belongs to any of the provided kinds.
Parameters
- identity System.Security.Principal.IdentityReference
- kinds System.Collections.Generic.ISet{ADPlayground.Identity.IdentityWellKnown.PrincipalKind}
IsAnyOf(System.Security.Principal.SecurityIdentifier sid, System.Collections.Generic.ISet{ADPlayground.Identity.IdentityWellKnown.PrincipalKind} kinds) #Returns true if sid belongs to any of the provided kinds.
Parameters
- sid System.Security.Principal.SecurityIdentifier
- kinds System.Collections.Generic.ISet{ADPlayground.Identity.IdentityWellKnown.PrincipalKind}
IsAnyOf(System.Security.Principal.IdentityReference identity, System.Collections.Generic.IEnumerable{ADPlayground.Identity.IdentityWellKnown.PrincipalKind} kinds) #Returns true if identity belongs to any of the provided kinds.
Parameters
- identity System.Security.Principal.IdentityReference
- kinds System.Collections.Generic.IEnumerable{ADPlayground.Identity.IdentityWellKnown.PrincipalKind}
IsAnyOf(System.Security.Principal.SecurityIdentifier sid, System.Collections.Generic.IEnumerable{ADPlayground.Identity.IdentityWellKnown.PrincipalKind} kinds) #Returns true if sid belongs to any of the provided kinds.
Parameters
- sid System.Security.Principal.SecurityIdentifier
- kinds System.Collections.Generic.IEnumerable{ADPlayground.Identity.IdentityWellKnown.PrincipalKind}
public static Boolean IsHighlyPrivileged(SecurityIdentifier sid) #BooleanReturns true when the identity represents a member of the highly privileged admin sets (Builtin/Domain/Enterprise Admins).
Parameters
- identity System.Security.Principal.IdentityReference
IsHighlyPrivileged(System.Security.Principal.SecurityIdentifier sid) #Returns true when the SID represents a member of the highly privileged admin sets (Builtin/Domain/Enterprise Admins).
Parameters
- sid System.Security.Principal.SecurityIdentifier