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

Announcements

No record found.

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 16
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,033 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
    16 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,033 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!

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 51 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 47 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans