Can you please help me solving this error?
{
"code": "PrincipalNotExists",
"message": "The request cannot be completed because the principal in tenant ***************************** with object id c17b22cc-************** does not exist."
}
Invoking this API: https://api.powerplatform.com/environmentmanagement/environments?api-version=2024-10-01
The AppRegistration does exists and it is configured as shown
As usual a TOken is being requested to Azure:
then used to make the api call.