Forum Discussion
Restricted View Policy Bug
- 10 months ago
Hi haku99,
Thank you for the follow-up question.That sounds like a practical approach given your organization’s preference for SAS authentication. I’m glad the explanation helped you make an informed decision.
If you ever decide to explore Managed Identity in the future, it can offer smoother integration with Fabric’s security layers, but your current setup should work just fine without the restricted view policy. Really appreciate you taking the time to share your outcome it’ll surely help others facing a similar situation.
Wishing you all the best with your Event house setup, and don’t hesitate to reach out again if any new questions come up.
Thank you for being part of the Microsoft Fabric Community Forum.
Hi haku99,
Thank you for reaching out to the Microsoft Fabric Community Forum. Also, thanks to datacoffee, for his inputs on this thread. I understand how confusing it can be when ingestion suddenly stops after applying a restricted view policy.
What is happening here is that the restricted view policy does not just apply to end users, it also applies to the ingestion identity. Even if you have granted unrestrictedviewer or admin at the database level, the ingestion process usually runs under a managed identity/service principal, and that identity is still being blocked by the policy. To move forward, I’d suggest:
First, check which identity is being used for the ingestion from Event Hub into Eventhouse. Then, add that identity as an exception to the restricted view policy so it can continue writing. Along with that, make sure it has the ingestor role unrestrictedviewer on its own will not allow writes.
If you want to avoid conflicts entirely, a common pattern is to ingest data into a staging/raw table without restrictions and then apply restricted view policies only on the curated/output tables that end users will query.
Refer these links for more information:
1. https://learn.microsoft.com/en-us/kusto/management/restricted-view-access-policy?view=microsoft-fabric
2. https://learn.microsoft.com/en-us/kusto/management/update-policy?view=microsoft-fabric
3. https://learn.microsoft.com/en-us/fabric/real-time-intelligence/eventhouse
4. https://learn.microsoft.com/en-us/fabric/real-time-intelligence/manage-monitor-eventhouse
Hope this clears it up. Let us know if you have any doubts regarding this. We will be happy to help.
Thank you for using the Microsoft Fabric Community Forum.
- haku9910 months agoFrequent Visitor
Thanks for this great response v-kpoloju-msft!!
Appreciate your thoughts. Yes I tried with ingestors as well, but I am not able to ingest data into it. Maybe I am doing something wrong in the process.
Currently I am finding the identity using:
.show ingestion failures
| top 100 by ingestion_time()
From the output I am finding the principal and providing access.
And to provide more context, my source is Azure event hub and my connection is using SAS not managed identity.
And my goal of using restricted policy in this scenario is, I am dumping all the data from event hub in this table and transferring the data to other tables after transformations using update policies. I dont want the users to access this data dump table and I am exploring ways to achieve this.- v-kpoloju-msft10 months agoCommunity Support
Hi haku99,
Thank you for the detailed follow-up, that helps a lot in understanding your setup. I see now that your ingestion is happening via Azure Event Hub with SAS authentication (instead of Managed Identity).
Since SAS tokens do not carry an identity that restricted view policies can exempt, ingestion will always fail in that setup. The cleanest solution is either:
Remove the restricted view policy from your raw dump table and secure it by access control instead, OR Switch ingestion to Managed Identity/Service Principal so you can explicitly allow that identity under the restricted policy.
This should help unblock you while keeping your staging table hidden from end users.Hope this clears it up. Let us know if you have any doubts regarding this. We will be happy to help.
Thank you for using the Microsoft Fabric Community Forum.
- haku9910 months agoFrequent Visitor
Thanks for this suggestion v-kpoloju-msft. i will try to test it out and update how it went. Appreciate your assistance!