Forum Discussion
Edit/create with app owns data
- 5 years ago
Anonymous - Correct, you have to create your own workspaces with Power BI Embedded, it isn't built in that every user gets a workspace. But, remember, you are writing your own application on top of Power BI Embedded. You can add an "Edit" button that, for example,
- Creates a new workspace for the user if it does not already exist
- Stores an attribute in the SQL database for the application for this user's workspace
- Copies the report to the workspace
- Opens the report in edit mode
Anonymous - So, in Apps owns data, that just means that your application is handling the authentication to Power BI because that is handled via an access token under the hood. You can still do authentication in your app and pass that information along. I just sat through a whole thing on Power BI Embedded a little while ago and was doing a bunch of research. As I recall, you could have a report available and when you "edit" it, you actually save the report to a workspace for that user and let them edit it there and save it. So, you wouldn't necessarily have to overwrite the report.
But what is the "workspace for that user" ?
According to this link https://docs.microsoft.com/en-us/power-bi/developer/embedded/embed-service-principal-certificate "My Workspace" isn't supported when using service principle.
So where should the user store the edited version of the report? In the same workspace? But in this case, it will be not possible for the user to access this version once again, as the implemented call (e.g. within the website) always leads to the original report...
It is clear for me, how it will work, if we call the report in the view mode, but I dont understand, what is the idea behind the edit and create modes.