3using System.Threading.Tasks;
Represents a user on the current global::System.Runtime.InteropServices.OSPlatform.
ISystemIdentity Clone()
Clone the ISystemIdentity creating another copy that must have IDisposable.Dispose called on it.
string Uid
A unique identifier for the user.
bool CanCreateSymlinks
If this system identity has permissions to create symlinks.
bool IsSuperUser
Is this identity a SuperUser for the OS. See Administrator on Windows or root on Linux.
Task RunImpersonated(Action action, CancellationToken cancellationToken)
Runs a given action in the context of the ISystemIdentity.
string Username
The user's name.