Skip to main content
System.Security.Principal.Windows package icon

System.Security.Principal.Windows

Provides classes for retrieving the current Windows user and for interacting with Windows users and groups. Commonly Used Types: System.Security.Principal.WindowsIdentity System.Security.Principal.SecurityIdentifier System.Security.Principal.NTAccount System.Security.Principal.WindowsPrincipal System.Security.Principal.IdentityReference System.Security.Principal.IdentityNotMappedException System.Security.Principal.WindowsBuiltInRole System.Security.Principal.WellKnownSidType When using NuGet 3.x this package requires at least version 3.4.

Total Downloads
4.7B
4,744,190,408
Published
Aug 25, 2020
Latest stable version

Install

.NET CLI
dotnet add package System.Security.Principal.Windows --version 5.0.0-preview.8.20407.11
Package Manager Console
Install-Package System.Security.Principal.Windows -Version 5.0.0-preview.8.20407.11
PackageReference
<PackageReference Include="System.Security.Principal.Windows" Version="5.0.0-preview.8.20407.11" />

Frameworks

.NETFramework4.6 .NETFramework4.6.1 .NETCoreApp2.0 .NETCoreApp2.1 .NETCoreApp3.0 .NETStandard1.3 .NETStandard2.0 UAP10.0.16299

Dependencies

System.Security.Claims
.NETFramework4.6
[4.3.0, )
[5.0.0-preview.8.20407.11, )
[5.0.0-preview.8.20407.11, )
[4.3.0, )
System.Collections
.NETStandard1.3
[4.3.0, )
[4.3.0, )
System.Reflection
.NETStandard1.3
[4.3.0, )
[4.3.0, )
System.Runtime
.NETStandard1.3
[4.3.0, )
[4.3.0, )
System.Runtime.Handles
.NETStandard1.3
[4.3.0, )
[4.3.0, )
System.Security.Claims
.NETStandard1.3
[4.3.0, )
[4.3.0, )
System.Text.Encoding
.NETStandard1.3
[4.3.0, )
System.Threading
.NETStandard1.3
[4.3.0, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.

Compatibility metadata lists 8 target frameworks; confirm the exact target used by your application.

The published metadata declares 16 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.