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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

GetDatasetUsersAsAdmin - How long is data retained?

Hi All, 

I'm using the PowerBI Rest API (GetDatasetUsersAsAdmin) to extract the list of users/ groups which have access to datasets published to the powerBI service.


Using this information I then remove some users/ groups from the App audience, how long do I need to wait until the Rest API results are updated? 

Right now I'm deleteing groups/ users from audiences but I'm still seeing them as having access in the API query results. 

Many Thanks,

 

Adam

1 ACCEPTED SOLUTION
Anonymous
Not applicable

With the help from MS Support, managed to conclude that removinig users from an App/ Audience doesn't remove their underlying datasets permissions. These have to remove sperately within the dataset settings, when this is done the no longer appear in the "GetDatasetUsersAsAdmin" response data. 

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

With the help from MS Support, managed to conclude that removinig users from an App/ Audience doesn't remove their underlying datasets permissions. These have to remove sperately within the dataset settings, when this is done the no longer appear in the "GetDatasetUsersAsAdmin" response data. 

Ah, right, should have read the original premise more carefully.  This is why we always recommend to only share via the app, never via the workspace.

Anonymous
Not applicable

Yep much of the issue was from legacy use of workspaces for sharing, however, is worth noting that a user or groups datasets/ schematic model permissions won't automatically be removed if they are removed from an app. 

 

akershaw95_0-1720544567790.png

 

lbendlin
Super User
Super User

usually within 15 minutes, but it can take up to 24 hrs for the changes to sync through the Entra ID.

Anonymous
Not applicable

Thank you for your repsonse - what is strange is I'm still seeing users and groups which have been removed from the app audiences and row level security rules.  

I would call that a bug.  If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .

Anonymous
Not applicable

Thanks for your help - i'll try raising a ticket!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.