How to get WorkspaceId in PowerBI?
Asked Answered
A

8

14

I am new to PowerBI. I am trying to implement "App owns data" i.e. embed reports within my web application. I am following this article https://learn.microsoft.com/en-us/power-bi/developer/embed-sample-for-customers

I have downloaded the sample app and I am following the steps. However currently I am stuck at the WorkspaceId. Where can I find the workspaceId? I have looked at all the screens in PowerBI and the associated Azure account but not able to find it

Advocacy answered 23/8, 2018 at 18:5 Comment(0)
C
10

WorkspaceID is the ID of the workspace which you can find from the url of your browser when you select a specific workspace.

It is in this format : https://app.powerbi.com/groups/WorkspaceID/

Clower answered 24/8, 2018 at 10:18 Comment(2)
Unfortunately, they seem to have changed that link. I now get "app.powerbi.com/groups/me/list/dashboards". Not exactly helpful...Confinement
"me" -> My workspace. If a report is created in other workspaces other than "My workspace", the workspace ID will still be shown after "groups/"Tuneful
M
2

You can find the workspace ID in the Admin portal settings by selecting Details next to the workspace name.

enter image description here

Source: https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-sample-for-customers?tabs=node-js#workspace-id

Melli answered 6/6, 2023 at 23:6 Comment(1)
This should be the accepted answer, this one still works in 2023. Thank you!!Hoax
M
1

This isn't a great answer, but it might work for you.

Click on Workspaces on the left menu on the Power BI site, navigate to the App Workspace you want to find the ID of, click on the ... ellipsis, and choose Members.

Menu Screenshot

When I click on this, it takes me to an Outlook site that has the ID as part of the URL.

Outlook

For me, the Files and Conversations options also go to pages where I can extract the ID from the URL.

Maelstrom answered 23/8, 2018 at 19:18 Comment(0)
E
0

This may not be what you were asking but if you want to use the Workspace ID (or any other identifier such as a friendly name, you could add a parameter and when publishing to the workspace, set the value of the parameter to the required value (workspace ID/name). We are using this to identify DEV/TEST/PROD workspaces within our reports.

Euchre answered 4/10, 2022 at 9:12 Comment(0)
L
0

A better method is checking the session storage in the browser where you have the workspace. The workspace id is saved as wid and under idTokenClaims object.

Larrainelarrie answered 6/4, 2023 at 13:58 Comment(0)
C
0

If you try to create a new workspace, you will find that it will have an id

Colier answered 1/12, 2023 at 9:18 Comment(0)
L
0

Another way to find WorkspaceID would be to connect to a dataflow created in the same workspace through a dataset, and the workspaceId becomes visible in the advanced editor.

Lawlor answered 13/6 at 12:45 Comment(0)
C
0

If you have published a semantic model, click on it in your My workspace. There is a link to My Workspace under the title which includes the id.

Catalano answered 2/8 at 22:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.