I am trying to associate a claimmappingpolicy with a main service from the graph api:
I tried to the call with the object id and appid, but it is not working, the resource is not found, but the resource exits:
why not find the service principal with the graph api ??
CodePudding user response:
You are looking at the app registration, which means you are looking at ids of the Application object. You need the service principal objectId instead.
You can click "Managed application in local directory" from the app registration or go to "Enterprise applications" and find your service principal from there (it has the same name).
Documentation: Application and service principal objects in Azure Active Directory