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 / Microsoft Graph - Http...
Power Automate
Answered

Microsoft Graph - Http request failed as there is an error getting AD OAuth token

(0) ShareShare
ReportReport
Posted on by

I'm trying to invite external users but getting an error "Http request failed as there is an error getting AD OAuth token: 'AADSTS90038: Tenant '----------' request is being redirected to the National Cloud 'MicrosoftOnline.COM'."

It triggers when a SP List item is created or modified.  The SP List has the email address of the external user (column: Title).
I got the Client ID, Tenant ID, and Secret from our Global Admin who registered the app in Azure.

We are also in Government cloud (GCC). 
HTTP ActionHTTP Action

*The typo (InvitedUserEmailAddress) on the above screenshot is not the cause, it has been fixed and still the same error.

Categories:
I have the same question (0)
  • Verified answer
    Aethyta Profile Picture
    on at

    I got this to work by using below under Authority field

    https://login.microsoftonline.com

     

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