Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi everyone, regarding RLS.
I have one report and it has two personas site owners ans service owners.
And created 2 roless
site owners - rls applied
Service owners - no filters
as I have single report and it has home page with 2 buttons visit site owner view & visit service owners view and based on the page navigations
now scenario 1. - when site owners access the report should see site owners button and should able to see the sites they own.
scenario -2 - when service owner access the report should see both buttons and when clicks on service owners should see all sites and clicks on site owners should see only owned sites.
working as expected -Site owners access able to see only single button and also see the sites they own
problem - when service owner access the report and able to see both buttons and clicks on service owners button able to see all sites BUT when clicks on site owners button also seeing all sites instead of sites they own.
please assist me to achieve this as expected
Solved! Go to Solution.
| Persona | Page | Expected Data |
|---|---|---|
| Site Owner | Any page | Only owned sites |
| Service Owner | Service Owner page | All sites |
| Service Owner | Site Owner page | Only owned sites |
| UserEmail | SiteID | AccessType |
|---|---|---|
| a@org.com | S1 | Site |
| a@org.com | S2 | Site |
| a@org.com | ALL | Service |
| b@org.com | S3 | Site |
| PageType |
|---|
| Site |
| Service |
Hi @Alatha ,
I would also take a moment to thank @Jaywant-Thorat , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions
Hi @Alatha ,
I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.
| Persona | Page | Expected Data |
|---|---|---|
| Site Owner | Any page | Only owned sites |
| Service Owner | Service Owner page | All sites |
| Service Owner | Site Owner page | Only owned sites |
| UserEmail | SiteID | AccessType |
|---|---|---|
| a@org.com | S1 | Site |
| a@org.com | S2 | Site |
| a@org.com | ALL | Service |
| b@org.com | S3 | Site |
| PageType |
|---|
| Site |
| Service |
Hello,
I think you can fix it by using one RLS role only and putting the logic inside the rule, create a mapping table with user email, persona, and site id.
Use this RLS rule:
IF ( LOOKUPVALUE( UserAccess[Persona], UserAccess[UserEmail], USERPRINCIPALNAME() ) = "ServiceOwner", TRUE(), Sites[SiteID] IN CALCULATETABLE( VALUES(UserAccess[SiteID]), UserAccess[UserEmail] = USERPRINCIPALNAME() ) )
|
Thank you Daniele for your reply.
I applied RLS role as you suggested
"" IF ( LOOKUPVALUE( UserTable[Persona], UserTable[Owners], USERPRINCIPALNAME() ) = "ServiceOwner", TRUE(), UserTable[SiteID] IN CALCULATETABLE( VALUES(SiteData[SiteID]), UserTable[Owners] = USERPRINCIPALNAME() ) ) ""
the result is showing rls filteredout the data in both site owners and service owners view BUT the expectation is serivce owners view should able to see all sites.
current model -
sitedatatable - contains all sites
usertable - siteid, owners, persona (persona is calculated column
IF(
UserTable[Owners] = "abcuser@del.com",
"SiteOwner",
"ServiceOwner"
)
connected Usertable to sitedatetable on SiteID with both direction and apply security filters
ex - UserTable
| SiteID | Owners | Persona |
| 1 | abcuser | ServiceOwner |
| 2 | abcuser | ServiceOwner |
| 3 | abcuser | ServiceOwner |
| 4 | xyzuser | SiteOwner |
| 5 | xyzuser | SiteOwner |
| 6 | xyzuser | SiteOwner |
Please let me know if am missing anything
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 35 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 75 | |
| 72 | |
| 38 | |
| 35 | |
| 25 |