Forum Discussion
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.
- Anonymous2 years ago
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).
HttpClientrequests2.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}/usersYou 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 LearnBest regards
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
2 Replies
- aj1973Community Champion
- AnonymousNot 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).
HttpClientrequests2.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}/usersYou 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 LearnBest regards
Albert He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly