Last active
June 26, 2025 13:30
-
-
Save jijosg/6154b86d3749e4ee5d3e83de498c3349 to your computer and use it in GitHub Desktop.
Set spn as owner of another spn/scim app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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