Forum Discussion

Kartic21's avatar
Kartic21
Helper I
2 years ago

PowerBI Embed giving userprincipalname some encrypted code "abc6543c-d087-####-5258-qwer1234hndt"

I have a powerbi which is embed in dotnet custom application. This application login through some generic user like "[email protected]" to access the powerbi embed application. This user is part of Active Directory.
I am trying to implement the object level security , so i  created a measure in the report as a start

userprincipalname = USERPRINCIPALNAME().

When i publish the file on custom portal it give userprincipalname as some encrypted value ..."abc6543c-d087-####-5258-qwer1234hndt" something like this. I tried with username too but result in same encrypted value

Note : userprincipalname work fine which i publish the file on PBI service 
Can somebody please help me on this how to solve this or what i am missing

@

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Kartic21,

     

    In your .NET application, ensure that the correct user information is passed when generating Power BI embedded tokens by customizing the authentication logic.


    Or when generating embedded tokens, you can use the Power BI REST API  effectiveIdentity to pass custom user attributes to correctly identify users in reports.


    Additionally, please verify if there is any dynamic data masking applied on the datasource, as this could also affect the results.

     

    Best regards,

    Joyce

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