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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
SHHargrove
Advocate II
Advocate II

analyze in excel - RLS with Multiple Accounts

I'm having trouble changing accounts using Analyze in Excel with Power BI.

 

When I first establish a connection, it asks for user credentials and then successfully uses those credentials for RLS.

However, when I want to change the user as directed in the blog:

 

You can also select Profile from the Power BI ribbon tab in Excel, which identifies which account you're currently logged in with, and provides a link that lets you sign out (and subsequently, sign in with a different account).

 

Excel connects, tells me I'm using the new user, but RLS continues to  use the original credentials.

Is this a bug, are are we doing something wrong?

 

Stan

4 REPLIES 4
SagiS
Regular Visitor

Hi Stan,

 

This is the expected behavior when trying to access shared dataset from two different users and this is the situation here when you changed the user in Excel and then you tried to access the same dataset in Power BI.
The reason is that the library that makes the connection between Excel and Power BI use connection information from the cache to establish the connection that means it connect with the previous user credentials.
You can use one of the following to work around this behavior –
1. Close Excel and delete the cache file from your machine (C:\Users\{user}\AppData\Local\aadmsolapcache.dat)
2. Add the required user mail to the connection string – after sign out and sign in from the Power BI ribbon, go to Data menu , Queries & Connections, Connections, Connection Properties dialog, Definition tab and add the string: User id=<user mail>; in the beginning of the Connection string.

Sagi 

 

This may be the "expected" behavior, but not the documented behavior.

Puts a pretty big technical burden on our user community.

Can we get it changed?

Anonymous
Not applicable

Still not "documented" 3+ years later, but the top secret undocumented location of the saved credentials for Excel to connect to the Power BI service (until they change it again) is:

 

%userprofile%\AppData\Roaming\Microsoft\Protect

 

Delete that entire folder, and the next time you open Excel, you'll be asked to log in to Power BI again. It also clears a saved login if you're using OneDrive to sync with Windows, but whatever. 

v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @SHHargrove,

 

I have reproduce the same issue on my environment. I will confirm with the Product Team to see if it is known limitation currently, or it is an issue that need to be fixed. And I will post back if I get any feedback. Smiley Happy

 

Regards

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.