Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Hi Sujith,
Thanks for the detailed comparison between the app-only request and recovery through the admin center. That helps narrow the investigation, although it does not yet establish why the affected environment behaves differently.
As the forum’s AI answer recommended, collecting the failed request’s correlation IDs and testing the documented recovery cmdlet with the same service principal are reasonable next steps. I would clarify a few points before making changes to the application or environment.
The error says that the service could not find user details for the specified tenant/principal pair. It does not tell us whether those details are missing from Microsoft Entra ID or from a Power Platform service, and it does not establish that the principal is the environment’s creator or owner. I could not find a Microsoft article documenting the exact meaning of this error for the BAP recovery operation.
The most useful first check is to compare the full tenant and principal IDs in the error with tid and oid from the app-only token used for that failed request. Microsoft defines oid as the identifier of the requesting user or service principal. If both match, the error refers to your calling service principal’s identity. That still would not explain why its details cannot be resolved, or which internal field supplied that identity. If they do not match, the GUID needs further investigation; it should not automatically be treated as the creator or owner.
Also distinguish oid from appid or azp: those identify the client application, rather than its tenant service-principal object.
Reference: Microsoft identity platform — Access token claims reference.
For the application-user question, Microsoft documents registering an application with Power Platform for tenant administration and supports service-principal authentication for environment management. However, that documentation does not specify that an application must have been a Dataverse application user in an environment before it was deleted to recover it afterward. I would therefore not treat missing application-user membership as the confirmed cause—or adding it as a confirmed fix.
Likewise, the observations do not establish that Trial environments require a creator/owner lookup during app-only recovery. Trial type, creation history, and application-user membership are useful details to compare between successful and failing cases, but they remain hypotheses.
Reference: Creating a service principal application using PowerShell
I could not find a documented header, API-version change, or additional prerequisite that resolves this particular error. Successful recovery through the admin center confirms that this environment was recoverable at that time; it does not establish that the interactive and app-only requests have identical requirements.
If the environment has already been recovered, there is no need to delete it again just to reproduce the issue. Use the existing evidence to open a Power Platform support request. Include the failed request’s UTC timestamp, environment ID, full error and response headers, and a successful app-only comparison. Share diagnostic details privately with support, without access tokens or client secrets.
The key question for support is: Which identity lookup failed, where did that principal ID come from, and is the failure due to an additional prerequisite, an unsupported scenario, or a service defect? Those details require service-side investigation that we cannot perform from this forum.
Finally, you are correct about /restore: Microsoft documents that operation as restoring a backup into a target environment that will be overwritten. It is not a substitute for recovering a soft-deleted environment, and its separate 403 response does not explain the BAP error.
Reference: Environment Restore — Restore Environment.