web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Power Platform API: PrincipalNotExists

(4) ShareShare
ReportReport
Posted on by 18
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.
I have the same question (1)
  • Suggested answer
    Tom_Gioielli Profile Picture
    3,086 Super User 2026 Season 1 on at
    Has the Service Principal been added to the Dataverse environment with proper permissions?
     
    Go to https://admin.powerplatform.com > Manage > Environments > S2S Apps > Add Principle and assign a security role
     
  • ___Pool___ Profile Picture
    18 on at
    If I understood well what you suggest would allow to access the environment where the app reg is being configured, but what I need is to get details about all envirnoments in power platform
  • Suggested answer
    Tom_Gioielli Profile Picture
    3,086 Super User 2026 Season 1 on at
     Sorry about that, thought this was for a specific environment.
     
    I did find this article where it looks like you need to register the Service Principle with Power Platform through the API. Was that done after creating the Service Principal?
     
  • CU27021437-0 Profile Picture
    3 on at

    Hi,

    I’m currently facing the exact same PrincipalNotExists error when calling the Environment Management API using client credentials flow.

    I’ve already:

    • Created the App Registration

    • Verified the Service Principal exists in Entra ID

    • Successfully obtained an access token for https://api.powerplatform.com

    Did you eventually solve the issue?

    If yes, was it related to registering the Service Principal in Power Platform via API or assigning a specific tenant-level role or something else?

     

    Thanks in advance!

  • inzil2k Profile Picture
    2 on at
    Have you been able to solve this issue? I'm having the same problem while trying to call Power Platform API with a service principal. All settings are correct but somehow it doesn't see the service principal existing in the tenant.
  • ___Pool___ Profile Picture
    18 on at
  • Suggested answer
    11manish Profile Picture
    726 on at
    The PrincipalNotExists error occurs because the service principal associated with your App Registration is not recognized in the target tenant or Power Platform
     
    environment.
     
    To fix it, ensure the app is in the correct tenant, grant admin consent to create the service principal, and add it as an Application User in Dataverse with
     
    appropriate roles.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 85

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 76 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 61

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans