Group operations
Updated: July 21, 2017
A Power BI app can post content to a user’s personal workspace and make the same REST API calls to any of the groups that the user has access to. Groups are a collection of unified Azure Active Directory groups that the user is a member of and is available in the Power BI service. These are referred to as app workspaces within the Power BI service.
To post a dataset to a user’s personal workspace you continue to send the POST request to https://api.powerbi.com/v1.0/myorg/datasets. It you want to post that dataset to a group, that the user is a member of, you send the POST request to https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets.
In order to get the group ID to put in the URL, you call the Get Groups operation.
GET https://api.powerbi.com/v1.0/myorg/groups
The Power BI REST API has the following Group operations:
- Add group: Adds a group.
- Add group user: Adds a user to a given group. Currently this adds only admin users.
- Delete group: Deletes a group.
- Delete group user: Removes a user from a group.
- Get Groups: Returns a JSON list of all Group objects that includes.
- Get group users: Returns a JSON list of all users within a group.