Reference from original https://www.codeproject.com/articles/3688/how-to-get-user-sid-using-directoryservices-classe
And SecurityIdentifier
in System.Security.Principal.Windows
from https://github.com/dotnet/runtime/blob/6bc6560e51d1cf58b54561f7be44801864479b8d/src/libraries/System.Security.Principal.Windows/src/System/Security/Principal/SID.cs#L403-L478