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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard