Forum Discussion

New_worker's avatar
New_worker
Icon for Helper II rankHelper II
1 year ago
Solved

user principal name (UPN) question

Hi- To return UPN, should we always use USERPRINCIPALNAME()?  May anyone help on below question and share me the document where to find the answer? Thanks.   Your network contains an on-premises ...
  • Akash_Varuna's avatar
    Akash_Varuna
    1 year ago

    New_worker I think it will not fully meet the goal. Syncing user objects via Microsoft Entra Connect is necessary but insufficient on its own. You also need to configure RLS roles properly and consider using USERPRINCIPALNAME() instead of USERNAME() to ensure the UPN is returned correctly.