Forum Discussion

BIscoverer's avatar
BIscoverer
Icon for Helper I rankHelper I
6 months ago
Solved

OneLake Security RLS works in Semantic Model, but returns 0 rows in SQL Endpoint

Hi everyone, I’m running into a wall with OneLake Security (Preview) and I’m hoping someone here has solved the issue.   I need a 'define once, enforce everywhere' security setup for the Gold lake...
  • BIscoverer's avatar
    6 months ago

    I was able to identify the root cause. In my case, some Entra ID groups had been renamed. Although the object IDs remained the same, the SQL analytics endpoint still had stale principal entries under the old names. Running a diagnostic query against sys.database_principals helped me identify the external principals present in the SQL endpoint, which is what that catalog view returns.

     

    After identifying the affected principal, I removed it by name from the current database and then triggered a metadata sync. The DROP USER syntax for a name with spaces must use brackets, for example DROP USER [Group Name] 

     

    After that, the sync completed successfully and I was able to query the table normally again.