Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Sanddog
New Member

How to use these API

Groups - Get Group Users - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Could anyone let me know where I can put these HTTP code?

I am confused.

 

Thank you.

2 ACCEPTED SOLUTIONS
aj1973
Community Champion
Community Champion

Hi @Sanddog 

You need to use Powershell to execute the API

here is an exemple of Powershell script

aj1973_0-1704749690578.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

View solution in original post

Anonymous
Not applicable

Hi @Sanddog ,
To use the Get Group Users REST API in Power BI, you need to make an HTTP request to the Power BI service. Here's how you can do this:

1.You can execute the HTTP request from any programming language that allows HTTP requests, such as Python, C#, or JavaScript.If using a programming language, use the appropriate library to make the HTTP request (e.g., in C#, in Python).

HttpClientrequests

2.Alternatively, you would need to use an HTTP client library or tool to send an HTTP request to the endpoint. The HTTP client library or tool would handle the details of sending the request and receiving the response.
3.Execution:

Method: GET
Headers: Include Authorization: Bearer <Your_Access_Token>
URL: https://api.powerbi.com/v1.0/myorg/groups/{groupId}/users

You can refer to the following official documentation for more details on using the rest api in power bi
Power BI REST APIs for embedded analytics and automation - Power BI REST API | Microsoft Learn

Best regards

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Sanddog ,
To use the Get Group Users REST API in Power BI, you need to make an HTTP request to the Power BI service. Here's how you can do this:

1.You can execute the HTTP request from any programming language that allows HTTP requests, such as Python, C#, or JavaScript.If using a programming language, use the appropriate library to make the HTTP request (e.g., in C#, in Python).

HttpClientrequests

2.Alternatively, you would need to use an HTTP client library or tool to send an HTTP request to the endpoint. The HTTP client library or tool would handle the details of sending the request and receiving the response.
3.Execution:

Method: GET
Headers: Include Authorization: Bearer <Your_Access_Token>
URL: https://api.powerbi.com/v1.0/myorg/groups/{groupId}/users

You can refer to the following official documentation for more details on using the rest api in power bi
Power BI REST APIs for embedded analytics and automation - Power BI REST API | Microsoft Learn

Best regards

Albert He

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
 

aj1973
Community Champion
Community Champion

Hi @Sanddog 

You need to use Powershell to execute the API

here is an exemple of Powershell script

aj1973_0-1704749690578.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors