The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
Is there a way to get userid info in Custom Visuals to restrict the use of Custom Visual to particular individuals?
I searched the forums and seems it is not yet supported.
https://community.powerbi.com/t5/Developer/Custom-Visual-get-current-user-and-report-page-id/td-p/13...
But then I see some of the paid visuals in the appstore like ZebraBI and Ultimate waterfall charts which have buying options per user. So I feel there is some way.
Hi @Husain,
No, the user ID is not available to the custom visual sandbox. The two visuals you've linked are also certfied, which means that they aren't doing any comms to external services (as this is something that in not allowed for certification).
I've not researched the act of commericalisation of custom visuals very heavily, as my intentions have always been to open-source them for others to learn from.
My guess would be that license checking is handled internally to the visual, possibly using a process like the one proposed here. If it is, then it's possible that the number of users licensed is entirely honour-based from the customer side, but the vendor will have terms of service that the customer could be in violation of if they are found to be exceeding this. Licenses might possibly have expiry dates and be issued on a regular basis to mitigate this also.
As MS leave the handling of commercial costs to the vendor (and some probably do handle this using external services), I'd suggest that if you want to know specifics about how this is being managed then you are probably best reaching out to the developers of specific visuals that you aspire to emulate to see if they are willing to share details on how they handle it.
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)