Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi there,
I am not a developer, knowing only the very basics of python. How complex is it to write a script in order to automatically start/stop Power BI embedded capacity, based on User activity on the dashboards?
Are there any examples?
Many thanks
Solved! Go to Solution.
HI @campelliann,
I'm not so clear about your description, can you please share some more detail about your requirement?
How to Get Your Question Answered Quickly
If you mean dynamic turn on/off the embed content usages, you only need to control the access token and not renew it, then this content should not able to be viewed after the token expired.
If you mean to do some operations with capacity, I'd like to suggest you take a look at the capacity APIs which list all supported operations on capacity :
Capacities - REST API (Azure Power BI Embedded) | Microsoft Docs
Regards,
Xiaoxin Sheng
@Anonymous one quick question which no one seems to know about licensing. Is it possible to create a shared account like [email protected] and have several people accessing the same PRO account.
Many thanks
HI @campelliann,
I'm not so clear about your description, can you please share some more detail about your requirement?
How to Get Your Question Answered Quickly
If you mean dynamic turn on/off the embed content usages, you only need to control the access token and not renew it, then this content should not able to be viewed after the token expired.
If you mean to do some operations with capacity, I'd like to suggest you take a look at the capacity APIs which list all supported operations on capacity :
Capacities - REST API (Azure Power BI Embedded) | Microsoft Docs
Regards,
Xiaoxin Sheng
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |