Skip to content

Instantly share code, notes, and snippets.

@jijosg
Last active June 26, 2025 13:30
Show Gist options
  • Save jijosg/6154b86d3749e4ee5d3e83de498c3349 to your computer and use it in GitHub Desktop.
Save jijosg/6154b86d3749e4ee5d3e83de498c3349 to your computer and use it in GitHub Desktop.
Set spn as owner of another spn/scim app
az rest --method POST --uri https://graph.microsoft.com/beta/servicePrincipals/<target-spn(enterprise-app)-object-id>/owners/\$ref --body '{"@odata.id": "https://graph.microsoft.com/v1.0/directoryObjects/<owner-spn(enterprise-app)-object-id>"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment