79596371

Date: 2025-04-28 11:33:50
Score: 1.5
Natty:
Report link

As this is the top result on Google and the answer provided by HS447 https://stackoverflow.com/a/70934790/6049116 does work if you use Azure CLI; just make sure you use the correct ID:s.

az ad app owner add --id <Application (client) ID> --owner-object-id <Enterprise Application Object ID>

If you try to use the App Registration Object ID instead of the Enterprise Application Object ID you get an error similar to: "The reference target 'Application_<REDACTED>' of type 'Application' is invalid for the 'owners' reference."

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Smurfa