cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ANM_97
Helper IV
Helper IV

USER ACCESS SETTING FOR VIEWING CERTAIN ACTIVITIES

Hi!
I need help with the following issue:
I have
-a table with the groups to which users belong; (AD_GDWH_GROUPS )
- a table of statuses. (AD_GDWH_GROUP_STATUS)


Each employee is part of a group. And the group has access to a list of statuses.


How should I create the formula so that it returns all the statuses that a user has access to?
Expected Result:
ENTER USER ANDY -> STATES TO WHICH HE HAS ACCESS: A, C, D.
ENTER TED USER -> STATES TO WHICH HE HAS ACCESS: B.

ANM_97_0-1617356224898.png

 

I made this measure, but returns only one status:

#View =

LOOKUPVALUE (
DIM_FLOW_STATUS[STATUS_NAME],
DIM_FLOW_STATUS[STATUS_NAME],
LOOKUPVALUE (
AD_GDWH_GROUP_STATUS[STATUS_NAME],
AD_GDWH_GROUP_STATUS[GROUP], LOOKUPVALUE ( AD_GDWH_GROUPS[GROUP], AD_GDWH_GROUPS[USER], USERNAME () )
)
)

 

 

~~Thank youu!!

1 ACCEPTED SOLUTION
Eyelyn9
Community Support
Community Support

Hi @ANM_97 ,

 

If the amount of data is relatively small , you could try Static RLS that can be used to restrict data access for given users.

 

Please follow these steps:

1. Go to Modeling-->Manage roles to add roles with status filter like this:

[STATUS] IN {"A","C","D"}
[STATUS]="B"

4.6.3.Add roles.PNG

2. Publish the report after creating some visuals.

3. Select the More options -->Serurity for this dataset, now you could add members/groups(groups are created in Office365).

4.6.3.Security.PNG

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Eyelyn9
Community Support
Community Support

Hi @ANM_97 ,

 

If the amount of data is relatively small , you could try Static RLS that can be used to restrict data access for given users.

 

Please follow these steps:

1. Go to Modeling-->Manage roles to add roles with status filter like this:

[STATUS] IN {"A","C","D"}
[STATUS]="B"

4.6.3.Add roles.PNG

2. Publish the report after creating some visuals.

3. Select the More options -->Serurity for this dataset, now you could add members/groups(groups are created in Office365).

4.6.3.Security.PNG

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@ANM_97 ,Measure/formula Not very clear. See if this blog can help

 

https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies



Power BI Features || Datamarts: https://youtu.be/8tskWsJTEpg || Field Parameters : https://youtu.be/lqF3Wa1FllE?t=70
Time Intelligence Decoded : https://youtu.be/aU2aKbnHuWs&t=145s
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!
Dashboard of My Blogs !! Connect on Linkedin !! Subscribe to my youtube Channel !!
Want To Learn Power BI | Beginners !! Advance Concepts !! Power BI For Tableau User !!

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors