TestimoX

API Reference

Class

IdentityWellKnown

Namespace ADPlayground.Identity
Assembly ADPlayground
Modifiers static

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

Classify 2 overloads
public static PrincipalKind Classify(SecurityIdentifier sid) #
Returns: PrincipalKind

Classifies an identity reference to a PrincipalKind.

Parameters

identity System.Security.Principal.IdentityReference requiredposition: 0
Classify(System.Security.Principal.SecurityIdentifier sid) #

Classifies a SID to a PrincipalKind.

Parameters

sid System.Security.Principal.SecurityIdentifier required
IsAnyOf 5 overloads
public static Boolean IsAnyOf(SecurityIdentifier sid, IEnumerable<PrincipalKind> kinds) #
Returns: Boolean

Returns true if identity belongs to any of the provided kinds.

Parameters

identity System.Security.Principal.IdentityReference requiredposition: 0
kinds ADPlayground.Identity.IdentityWellKnown.PrincipalKind[] requiredposition: 1
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 required
kinds System.Collections.Generic.ISet{ADPlayground.Identity.IdentityWellKnown.PrincipalKind} required
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 required
kinds System.Collections.Generic.ISet{ADPlayground.Identity.IdentityWellKnown.PrincipalKind} required
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 required
kinds System.Collections.Generic.IEnumerable{ADPlayground.Identity.IdentityWellKnown.PrincipalKind} required
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 required
kinds System.Collections.Generic.IEnumerable{ADPlayground.Identity.IdentityWellKnown.PrincipalKind} required
IsHighlyPrivileged 2 overloads
public static Boolean IsHighlyPrivileged(SecurityIdentifier sid) #
Returns: Boolean

Returns true when the identity represents a member of the highly privileged admin sets (Builtin/Domain/Enterprise Admins).

Parameters

identity System.Security.Principal.IdentityReference requiredposition: 0
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 required