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 / trying to get access t...
Power Automate
Unanswered

trying to get access token in flow (getting realm and resource)

(0) ShareShare
ReportReport
Posted on by 21

Hi,

 

I get the following error when trying to get an access token via flow: {"error":"invalid_request","error_description":"AADSTS90019: Unable to determine the tenant identifier from the request. Client ID 'xxxxx' does not specify a tenant realm.

I've a sharepoint app where I've got the necessary details (clientid, secretid,tenantid) and given it the relative permissions.

I presume I'm not combining the client and tenant ID correctly or perhaps not setting the resource as required. 

Has anyone done this post request via flow? I've attached a screenshot of what I've done. 

share42.JPG

 

Thanks for any support. 

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    on at

    Hi @Byrdwatcher1966,

     

    Could you share a full screenshot of your flow’s configuration?

    The error message told that there is something wrong with the tenantID content from the request and your Client ID doesn’t specify a tenant realm.

    Please check if you have provided proper tenantID content and Client ID in "Get access token" action.

     

    In addition, check and see if the following article would help in your scenario:

    https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/Generate-an-Azure-OAuth2-0-Token-from-a-quot-service-quot-Flow/ba-p/61979

     

    Best regards,

    Kris

  • Byrdwatcher1967 Profile Picture
    10 on at

    Hi Kris, 

    I guess it's quite similar to the link you posted. The first step where the http request is received returns the secretid, tenantid and clientid from a sharepoint app. This step returns three values. These values seem correct. I'm getting the clientid and secretid from the sharepoint app and tenantid from sharepoint/office365. 

    The next steps are just returning variables and the last one is where I try to get the access token. 

     

     share54.JPG

     

    If I change the access token step to do the following below:

    share55.JPG

    I get the following error message:

    {"error":"invalid_request","error_description":"AADSTS90019: Unable to determine the tenant identifier from the request. Client ID 'b3ea9883-xxx' does not specify a tenant realm...."

     

    Thanks

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    It might be too late for you but my solution can be useful to someone else.

    client_id value used in body request  must be: client_id +@+Tenant_Id. It looks like:

     

    818bec3f-e529-432b-gdf4-2f2fa20d60ef@55f96fd4-fab6-49c3-bd24-dl0d60b17095

     

     

  • pypycodes Profile Picture
    3 on at

    Thanks and this has worked form me

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard