Convert AAD Security Identifier to ObjectId

Hi everyone,

I’m trying a way to convert an azure active directory Sid into an ObjectId. The graph API contains a field which is called SecurityIdentifier but I don’t understand if there is a function to transform it into ObjectID.
Thanks a lot for any information relating to my case.

Hi, I resolved, here the function:
function Convert-AzureSidToObjectId( $azureSid){
foreach($i in $blocks){
$place += 4