System Security Principal C# by API

using System;
using System.Security.Principal;
class MainClass
{
    public static void Main (string[] args) 
    {
        
        WindowsIdentity identity = WindowsIdentity.GetCurrent();
    }
}