I need to convert Windows security identifier into the object Id. It is available in power shell but not in nodejs
This is power shell https://github.com/okieselbach/Intune/blob/master/Convert-AzureAdSidToObjectId.ps1
sid is "S-1-12-1-1943430372-1249052806-2496021943-3034400218"
objectId 73d664e4-0886-4a73-b745-c694da45ddb4
It would be best if you imported the GUID library since UUID can't parse GUIDs. I used the js-guid library