I am trying to create a dynamic row level security solution for an embedded report. Users will log into an existing corporate dashboard and this report will show for them. The embedded report passes a USERPRINCIPALNAME() that corresponds to the user's email address contained in a Users table.
The Users table connects to a UsersGroups table which contains a UserID and a GroupID. The GroupID connects to a Groups table that contains the GroupID and a LocationID. The LocationID connects to a Location table, which should be what grants access to the data using the LocationID.
Users may have multiple LocationIDs that they need access to.
I've been struggling to find the correct DAX command to put into the Row Level Security filters. Help!