All URIs are relative to https://api.powerbi.com
| Method | HTTP request | Description |
|---|---|---|
| addGroupUser | POST /v1.0/myorg/groups/{groupId}/users | Add a group user |
| createGroup | POST /v1.0/myorg/groups | Create new group |
| deleteGroup | DELETE /v1.0/myorg/groups/{groupId} | Deletes the specified group |
| deleteUserInGroup | DELETE /v1.0/myorg/groups/{groupId}/users/{user} | Deletes the specified group |
| getGroupUsers | GET /v1.0/myorg/groups/{groupId}/users | Get a group users list |
| getGroups | GET /v1.0/myorg/groups | Returns a list of groups |
Object addGroupUser(groupId, userDetails)
Add a group user
// Import classes:
//import com.microsoft.powerbi.ApiException;
//import com.microsoft.powerbi.api.GroupsApi;
GroupsApi apiInstance = new GroupsApi();
String groupId = "groupId_example"; // String | The group id
GroupUserAccessRight userDetails = new GroupUserAccessRight(); // GroupUserAccessRight | user access right details
try {
Object result = apiInstance.addGroupUser(groupId, userDetails);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GroupsApi#addGroupUser");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | String | The group id | |
| userDetails | GroupUserAccessRight | user access right details |
Object
No authorization required
- Content-Type: application/json
- Accept: Not defined
Group createGroup(requestParameters)
Create new group
// Import classes:
//import com.microsoft.powerbi.ApiException;
//import com.microsoft.powerbi.api.GroupsApi;
GroupsApi apiInstance = new GroupsApi();
GroupCreationRequest requestParameters = new GroupCreationRequest(); // GroupCreationRequest | Create group request parameters
try {
Group result = apiInstance.createGroup(requestParameters);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GroupsApi#createGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| requestParameters | GroupCreationRequest | Create group request parameters |
No authorization required
- Content-Type: application/json
- Accept: application/json
Object deleteGroup(groupId)
Deletes the specified group
// Import classes:
//import com.microsoft.powerbi.ApiException;
//import com.microsoft.powerbi.api.GroupsApi;
GroupsApi apiInstance = new GroupsApi();
String groupId = "groupId_example"; // String | The group id to delete
try {
Object result = apiInstance.deleteGroup(groupId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GroupsApi#deleteGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | String | The group id to delete |
Object
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Object deleteUserInGroup(groupId, user)
Deletes the specified group
// Import classes:
//import com.microsoft.powerbi.ApiException;
//import com.microsoft.powerbi.api.GroupsApi;
GroupsApi apiInstance = new GroupsApi();
String groupId = "groupId_example"; // String | The group id
String user = "user_example"; // String | The user email to delete
try {
Object result = apiInstance.deleteUserInGroup(groupId, user);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GroupsApi#deleteUserInGroup");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | String | The group id | |
| user | String | The user email to delete |
Object
No authorization required
- Content-Type: Not defined
- Accept: Not defined
ODataResponseListGroupUserAccessRight getGroupUsers(groupId)
Get a group users list
// Import classes:
//import com.microsoft.powerbi.ApiException;
//import com.microsoft.powerbi.api.GroupsApi;
GroupsApi apiInstance = new GroupsApi();
String groupId = "groupId_example"; // String | The group id
try {
ODataResponseListGroupUserAccessRight result = apiInstance.getGroupUsers(groupId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GroupsApi#getGroupUsers");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| groupId | String | The group id |
ODataResponseListGroupUserAccessRight
No authorization required
- Content-Type: Not defined
- Accept: application/json
ODataResponseListGroup getGroups()
Returns a list of groups
// Import classes:
//import com.microsoft.powerbi.ApiException;
//import com.microsoft.powerbi.api.GroupsApi;
GroupsApi apiInstance = new GroupsApi();
try {
ODataResponseListGroup result = apiInstance.getGroups();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling GroupsApi#getGroups");
e.printStackTrace();
}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json