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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
datasetleo
Helper I
Helper I

Power Query - Sharepoint: clearing permissions when file opens (or never save permissions)

Hi, All.

 

#1

When loading a sharepoint file to PowerQuery, I need to enter sharepoint permissions (organization) and Excel stores those permissions.

Is there a way for Excel to ask for permission every time someone opens the file?

 

The file is to be shared within the organization; I want to make sure only those with proper sign-in privileges can see data.

I have been able to manually clear permissions using "data source settings", but not sure how to do it so that I can have the connection and clear it next time someone opens the file.

 

Snag_2e5b9d.png

 

#2 Is there any way to see in SharePoint or excel or anything, how many times the data connection is accessed? sort of analytics for data queries.

 

Thanks a lot!

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @datasetleo 

 

as far as I know, the credentials are not stored in the file, but on the profile of the computer. So, as soon you pass the file to another computer or the file is opened by another profile, the credentials are no longer there and have to enter the credentials as soon as a refresh is executed.


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

1 REPLY 1
Jimmy801
Community Champion
Community Champion

Hello @datasetleo 

 

as far as I know, the credentials are not stored in the file, but on the profile of the computer. So, as soon you pass the file to another computer or the file is opened by another profile, the credentials are no longer there and have to enter the credentials as soon as a refresh is executed.


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors