Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

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

  • Anonymous's avatar
    Anonymous
    2 years ago

    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. 

7 Replies

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

  • Anonymous's avatar
    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. 

    • lbendlin's avatar
      lbendlin
      Icon for Super User rankSuper User

      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's avatar
        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.