Forum Discussion
nicksav
9 years agoHelper 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
- nicksavHelper 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: '[email protected]', givenName: 'Bla', surname: 'Bla', puid: '1003BFsasdFD875827CD', uoid: '2a20as672d-8cb8-4482-92ec-bb19s15f1790c', alternateEmail: '' } } };var tenantId = '029b6basd23-fa07-48ba-9639-72aasdf0a673729';
- v-chuncz-msftCommunity Support
- nicksavHelper II
That's bad. Nobody is looking into github from msft