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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Tung
Frequent Visitor

How to save data by user account in Power BI Custom Visual without losing it when changing machines.

Hello everyone
I am developing Power BI Custom Visual with "powerbi-visuals-api". I need to save some information by user account, so that when they log in on another machine or the machine they are using, the data will always exist until I delete it or I can change it.

Currently, I have tried the following methods but they have not met the requirements:

1. Using storageService and storageV2Service → Not working when changing machines because this is local storage based on session.

2. Calling external API to save data → Blocked by Content Security Policy (CSP) of Power BI Service.

3. Trying to enable IFrame Mode (sandboxing: "iframed") in pbiviz.json → But the API is still blocked when running on Power BI Online.

Question:
1️⃣Is there a way to save data by user account so that when they change devices, the data is still there?
2️⃣Is there a way to use Power BI to call external APIs?

Thank you everyone!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

I need to save some information by user account, so that when they log in on another machine or the machine they are using, the data will always exist until I delete it or I can change it.

that sounds like a security issue. You as a developer should not have access to that information beyond what is stored locally.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

I need to save some information by user account, so that when they log in on another machine or the machine they are using, the data will always exist until I delete it or I can change it.

that sounds like a security issue. You as a developer should not have access to that information beyond what is stored locally.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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