Practice Exam

Question 70 of 75

Troubleshoot USERNAME() Function in Dynamic RLS

You work for MDFT Pro, a well-known training organization. The academy’s network contains an on-premises Active Directory Domain Services (AD DS) domain that syncs with a Microsoft Entra tenant using Microsoft Entra Connect.

MDFT Pro has a Fabric tenant containing a semantic model for student data. You enable dynamic row-level security (RLS) for the model and deploy it to the Fabric service. But when querying a measure that includes the USERNAME() function, it returns a blank result.

To ensure that the measure returns the user principal name (UPN) of a user, you create a role in the model.

Does this solve the problem?

Choose the correct answer from the options below.

Explanations for each answer:

Learn more about Row-Level Security in Fabric:
Row Level Security
Next Question
Discuss this question on social media: