Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
POSPOS
Post Partisan
Post Partisan

How to have multiple roles

Hi All,

I have a requirement as below: 

I have 5 pages in the dashboard.

  • Pages 1,2,3,4 are coming from Table 1 and Table 2 and
  • Page 5 data is from Table 3.

There is a dynamic Row level security on Table 1 and 2, I have created a role a Role_user based on user login and users  see only the data they are supposed to see for Pages 1-4.
Now, specifically for Page 5 where the data is coming from Table 3, I want to ensure that the roles assigned to Role_User does not see that data.. I want to create a new role in Power BI and then assign a different user group who should be seeing the data.
Note, we do not have any user ID or user name column in Table 3.

Can anyone please advise on how to achieve this?

Thank you

1 ACCEPTED SOLUTION
v-pgoloju
Community Support
Community Support

Hi @POSPOS,

 

Thanks for reaching out to the Microsoft Fabric Forum Community.

 

The only solution I can Think off at the moment is

Create a User Access Table with a level of access

"Basic" users can see only Table1 & Table2 (Pages 1–4).

"All" users can also see Table3 (Page 5).

 

Then create roles

For Table1 and Table2:
LOOKUPVALUE(
UserAccessControl[Access_Level],
UserAccessControl[UserID],
USERPRINCIPALNAME()
) IN { "Basic", "All" }


For Table3:
LOOKUPVALUE(
UserAccessControl[Access_Level],
UserAccessControl[UserID],
USERPRINCIPALNAME()
) = "All"


If this helped, please mark the response as the accepted solution and give it a thumbs-up so others can benefit too.

Best regards,
Prasanna Kumar

 

View solution in original post

8 REPLIES 8
v-pgoloju
Community Support
Community Support

Hi @POSPOS,

 

We wanted to kindly check in to see if everything is working as expected after trying the suggested solution. If there’s anything else we can assist with, please don’t hesitate to ask.

If the issue is resolved, we’d appreciate it if you could mark the helpful reply as Accepted Solution  it helps others who might face a similar issue.

 

Warm regards,

Prasanna Kumar

v-pgoloju
Community Support
Community Support

Hi @POSPOS,

 

We wanted to kindly check in to see if everything is working as expected after trying the suggested solution. If there’s anything else we can assist with, please don’t hesitate to ask.

If the issue is resolved, we’d appreciate it if you could mark the helpful reply as Accepted Solution  it helps others who might face a similar issue.

 

Warm regards,

Prasanna Kumar

v-pgoloju
Community Support
Community Support

Hi @POSPOS,

 

Just following up to see if the solution provided was helpful in resolving your issue. Please feel free to let us know if you need any further assistance.

If the response addressed your query, kindly mark it as Accepted Solution and click Yes if you found it helpful  this will benefit others in the community as well.

 

Best regards,

Prasanna Kumar

v-pgoloju
Community Support
Community Support

Hi @POSPOS,

 

Thanks for reaching out to the Microsoft Fabric Forum Community.

 

The only solution I can Think off at the moment is

Create a User Access Table with a level of access

"Basic" users can see only Table1 & Table2 (Pages 1–4).

"All" users can also see Table3 (Page 5).

 

Then create roles

For Table1 and Table2:
LOOKUPVALUE(
UserAccessControl[Access_Level],
UserAccessControl[UserID],
USERPRINCIPALNAME()
) IN { "Basic", "All" }


For Table3:
LOOKUPVALUE(
UserAccessControl[Access_Level],
UserAccessControl[UserID],
USERPRINCIPALNAME()
) = "All"


If this helped, please mark the response as the accepted solution and give it a thumbs-up so others can benefit too.

Best regards,
Prasanna Kumar

 

Deku
Super User
Super User

For the first role set the RLS expression for table 3 to false().

 

Then the second role can overwrite this with true().


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

@Deku  - This is what I have for role 1:

POSPOS_0-1747344078866.png

I want to create another Role 2, Not sure what code I should be using for Role 2 and where I should be mentioning True () or False()

Note: All users assigned to Role 1 should only see page 1,2,3,4. Only users assigned to Role 2 should be seeing page 5. Also we do not have user name or user id in Table3. 

Can you please provide detailed steps 

The true false would be for table 3. If you want people to only see specific pages I would suggest splitting the report in two, from the same semantic model. Then you can publish as a app and use audiences so that each group with have conditional access to each report/set of pages 


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

@Deku  - Our requirement is to have both the cases in the same report as there could also be cases where users assigned to first role and seeing pages 1,2,3,4 could also have access to the page 5. Users could be same for both the roles.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors