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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / AD OAuth token: AADSTS...
Power Automate
Suggested Answer

AD OAuth token: AADSTS500011

(0) ShareShare
ReportReport
Posted on by 31
Hello Experts,
 
I am trying to add a service account using HTTP (premium action) as Site Admin when a site get created. 
 
This is the error that I am getting :
 
 
 
Http request failed as there is an error getting AD OAuth token: 'AADSTS500011: The resource principal named https://xxxx.sharepoint.com/sites/Test-NotMe was not found in the tenant named Contoso. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: c3b65462-f2f8-4924-b1e2-a022385c2e00 Correlation ID: da96d86f-813b-443b-aca3-7ccd67f687b7 Timestamp: 2024-11-18 16:00:21Z'.
 
 
 
I am sure that using correct Site name, AD App ID , certificated (since I already getting SharePoint group info in an action above this) also the app app already have consent admin as well.
 


 
 
 
Any suggestion/advise please?
Categories:
I have the same question (0)
  • Suggested answer
    Keyvan Profile Picture
    31 on at
    It got resolved by updating the header of the API call to this;
     
     
    {
      "Content-type": "application/json"
    }

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 Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard