I am doing a POC on RLS (Row Level Security).
- I have a very basic Report which lists all leads and Their Owners
- I have a Role Defined with formula as:
[internalemailaddress] = USERPRINCIPALNAME()
on SystemUsers Table. - Testing this on Desktop works
- Publish and Add Users to the Role
- Use PowerBI Dashboard Option inside Dynamics 365 to show this dashboard inside Dynamics CRM
- Login via One of the Users which has this PowerBI Role
- All The Rows are shown and No Filtering Occurs.
Please suggest If I am doing something wrong.
Also please suggest if there is a way via which System Roles/Groups define in CRM/O365 can be reused in PowerBI (e.g. SalesPerson should be able to view only his data, Sales-Manager should be able to get data of all sales person under his territory etc.)