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 / Audience in an HTTP re...
Power Automate
Unanswered

Audience in an HTTP request via Active Directory OAuth

(1) ShareShare
ReportReport
Posted on by 8

Hi,

I'd like to automate some tasks in Power BI Service. Unfortunately, there is only a simple connector for Power BI. It means I have to write my own custom connector or create some HTTP request by myself (https://docs.microsoft.com/en-us/rest/api/power-bi/). That's ok for me.

But the problem is: I've registered an app in Azure and got client ID and client secret. But if I want to create an HTTP request with Active Directory OAuth, there is a field I don't understand: audience. I wasn't able to find out what I should write in. Does anybody have an idea what the field is for and what should be there?

Thank you for every hint.

 

audience.png

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

    Hi @Nolock,

     

    You can have a try with:

    https://graph.microsoft.com

    There has a blog about Graph call, maybe it could help you something:

    https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/The-Sweetest-Graph-Call-You-ve-Ever-Seen-Hiding-Data-in-Flow/ba-p/262599

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Nolock Profile Picture
    8 on at

    Hi @v-litu-msft,

    thank you very much for your answer. Unfortunately, it didn't work 😞

    In some resource they use a URI, sometimes a GUID like here. The definition from the link says: "The GUID for the target resource that you want to access, which is the client ID from the application identity for your web app or API app."

    I've tried everything possible, nothing works 😞

  • Amin0 Profile Picture
    4 on at
  • Amino0 Profile Picture
    26 on at

    In case someone is still stuck with this error. The Audience should be one of the below

    'https://service.flow.microsoft.com/'

    'https://management.core.windows.net/'

    'https://management.azure.com/'

    'https://service.powerapps.com/'

    'https://service.kratosapps.com/'

    '637fcc9f-4a9b-4aaa-8713-a2a3cfda1505'.

     

    The Audience is the API which your custom authentication App has permissions on. To get this URL, navigate to Azure AD --> App Registration, then select your custom authentication App, and click on API Permissions. Hereafter, select API / Permissions name which should pop up the permission details along with the used API. For example, https://service.flow.microsoft.com/Approvals.Manage.All . In this case, the Audience is https://service.flow.microsoft.com/  

  • Amino0 Profile Picture
    26 on at

    In case someone is still stuck with this error. The Audience should be one of the below

     

     

    'https://service.flow.microsoft.com/','https://management.core.windows.net/','https://management.azure.com/','https://service.powerapps.com/','https://service.kratosapps.com/','637fcc9f-4a9b-4aaa-8713-a2a3cfda1505'

     

    The Audience is the API which your custom authentication App has permissions on. To get this URL, navigate to Azure AD --> App Registration, then select your custom authentication App, and click on API Permissions. Hereafter, select API / Permissions name which should pop up the permission details along with the used API. For example, https://service.flow.microsoft.com/Approvals.Manage.All. In this case, the Audience is https://service.flow.microsoft.com/ 

  • tony_hernandez Profile Picture
    14 on at

    Updating this post. Easiest way to find your audience in 2021 is to go to:

    AAD > App Registration > Select App > API Permissions > Click the Top level item of a permission (i.e. Microsoft Graph) > When the Library opens you should see the an HTTPS address below the Name label. This is your API audience.

    tony_hernandez_0-1622040731203.png

     

     

     

  • seadude Profile Picture
    1,855 on at

    Hm. I'm not able to get this to work: 

    - Registered app in AAD:

    seadude_0-1628609155689.png

    - Setup HTTP action accordingly

    seadude_1-1628609194311.png

     

    Results:

    seadude_2-1628609236412.png

     

    Any ideas on what I'm missing?

  • swiftinitdotcom Profile Picture
    14 on at

    I have exactly same issue-Http request failed as there is an error getting AD OAuth token: 'AADSTS500011: The resource principal named "https://service.flow.microsoft.com" was not found in the tenant named swiftinit. This can happen if the 

  • wab Profile Picture
    22 on at

    Did you managed to find a solutions?

  • IHPROLAN Profile Picture
    6 on at

    Hello, I am also having trouble using the OAuth. I get the same error. Is there any solution on that?

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard