Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Datasets - Post Dataset User for existing workspace

Hi,

 

I have seen a new api for managing permission at the dataset level:
https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/post-dataset-user

 

But, for using this Api, we require a workspace which is version V2. I have the following queries in connection to this:

1. Can we programmatically upgrade existing workspaces created using Power Bi Api to workspace version V2. If yes, will this cause any issues for existing users and reports etc ?

 

2. Is there any property available in the Power Bi Rest API for identifying if a workspace is workspace version V2 or not ?
For example, I am querying the properties of a workspace using this api call:
Client.Groups.GetGroupsAsync($"name eq '{workspaceName}'")
If this is available, I can programmatically invoke the Post Dataset User endpoint when workspace version = v2.

 

Thanks in advance.

2 Replies