Forum Discussion

sahinad's avatar
sahinad
Frequent Visitor
8 months ago
Solved

OneLake Security DatamartsUserNotAuthorized issue

Hi, OneLake Security got stuck with a deleted role and it is not functioning properly anymore. I have deleted this role but the error keeps coming back. Hours have passed, but it's not getting ...
  • Anonymous's avatar
    Anonymous
    8 months ago

    Hi sahinad ,

    Try below steps to fix the issue.

     

    1. Audit the affected artifact (datamart or lakehouse):

     

    Go to the workspace > open the datamart > check “Manage permissions”.

     

    Look for any lingering references to the deleted role or its ObjectID.

     

    2. Reassign permissions explicitly:

     

    If the error message includes an ObjectID, manually assign permissions to that ID using Power BI or Fabric Admin tools.

     

    Alternatively, create a new role with the same intended access and assign it to the user.

     

    3. Use PowerShell or REST API to inspect bindings:

     

    Use Microsoft Fabric’s API or PowerShell to list all role bindings for the artifact.

     

    Remove any bindings that reference the deleted role.

     

    4. Clear OneLake security cache (if supported):

     

    There’s no direct “cache clear” button, but re-saving permissions or restarting the workspace may help force re-evaluation.

     

    5. Check for workspace-level security inheritance:

     

    Sometimes roles are inherited from workspace settings. Ensure the deleted role isn’t still referenced there.

     

    Refer below link.

    https://learn.microsoft.com/en-us/fabric/onelake/security/get-started-security

     

    If my response as resolved your issue please mark it as solution and give kudos.