Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
nicksav
Helper II
Helper II

Custom Visual - get current user and report/page id

Microsoft, can you please let me know if there is an internal api or any other way how we can get the currently log in user and the report id/page from the custom Visual iframe? I have been digging into powerbi variable and sandbox varilable and cant find any relevant information. Is it actually possible?

 

Also, I know that from the IFrame we have access to power BI token. Would I be able to call a graph api let's say or azure AD to get the user information based on this token?

 

Please help, the rocket visual idea is just waiting for your reply!

 

Cheers!

Nick

15 REPLIES 15
nicksav
Helper II
Helper II

More info:

Is there any way to post message back to parent from IFRAME to get access to tgose variables:

    var powerbi = {
        session : {
            userInfo: {
                name:  'Bla.Bla@test.com.au',
                givenName: 'Bla',
                surname: 'Bla',
                puid: '1003BFsasdFD875827CD',
                uoid: '2a20as672d-8cb8-4482-92ec-bb19s15f1790c',
                alternateEmail: ''
            }
        }
    };
    var tenantId = '029b6basd23-fa07-48ba-9639-72aasdf0a673729';

@nicksav,

 

There is a related open issue on GitHub, you may leave a comment.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That's bad. Nobody is looking into github from msft

@nicksav,

 

Not exactly, we can see the progress regularly.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@all, @v-chuncz-msft Are there any updates on this? Current user and report/page id is exactly what we need for our product.

v-viig
Community Champion
Community Champion

Please open an issue in our GitHub to track the status.

Please include a small description why you need to know who uses the report.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Sunkari
Responsive Resident
Responsive Resident

@nicksav: Any solution for this issue.

v-viig
Community Champion
Community Champion

This feature is still on the backlog as there's a security concern regarding sharing user id and report id.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Sunkari
Responsive Resident
Responsive Resident

@v-viig Thanks for the update.

 

Due to this, we are unable to drill-down to other applications with single sign-on.

 

Many of the customer's requirement of moving from Power BI to other web application with SSO.  

 

Please let us know the issue in implementing this feasibility in Power BI Service(PowerBI.com)

 

 

 

 

v-viig
Community Champion
Community Champion

Username is actually personal information that CVs would share with third party services. Anyway this feature is on backlog and we'll consider it.

 

SSO is on backlog as well but there's no ETA so far.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Hello. Is there news on this?

Hi @FelipeCosta - nothing has changed in this regard since this thread was last updated. If you need an official response, it'll be better to email the custom visuals team directly (pbicvsupport@microsoft.com), as they don't currently have a representative checking the forums.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Sunkari
Responsive Resident
Responsive Resident

@v-viigThanks for the update.

Hi @v-viig 

 

Are there any news?

Mr Vilesov, could you please explain those security concerns, so that we (the developers) can argue about that with our bosses why we can't have this feature in Power BI (but all other BI platforms have this)?

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.