How can i get the SID for the Current User ?

Example:
S-1-5-21-240221108-1246264336-1905203885-1000

Thanks