cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Audience in an HTTP request via Active Directory OAuth

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

5 REPLIES 5
Highlighted
Community Support
Community Support

Re: Audience in an HTTP request via Active Directory OAuth

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-Eve...

 

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.

 

Highlighted
New Member

Re: Audience in an HTTP request via Active Directory OAuth

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 😞

Highlighted
Regular Visitor

Re: Audience in an HTTP request via Active Directory OAuth

 
Highlighted
New Member

Re: Audience in an HTTP request via Active Directory OAuth

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/  

Highlighted
New Member

Re: Audience in an HTTP request via Active Directory OAuth

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/ 

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (6,815)