Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
geckodead
Frequent Visitor

Security: Add emails that are not in my organization

Hello, I have a problem.

 

On Power BI Desktop, by testing the display functionality as roles, it works.

I created a dynamic role, which grants access to certain data based on the email address with USERPRINCIPALNAME () on Power BI Desktop it works.

 

Unfortunately, I realize that on Power BI Service it does not work. In addition to that, my role is not dynamic anymore (if I believe my research), I have to manually add all the email addresses related to roles when I thought that with USERPRINCIPALNAME (), we did not need to do that.

 

And this is my biggest problem, we can only add mail addresses related to our organization but I create the report precisely so that it is accessible to my clients.

 

Is there a solution ?

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @geckodead,

 

Based on my test,  even though you use the USERPRINCIPALNAME () on Power BI Desktop, you should also go to security setting of the data set you just published to add users. The advantage of using  USERPRINCIPALNAME () or username() is that you needn’t to add multi roles in Power BI desktop. For example, you create a role using DAX [username] = USERNAME() in desktop and add some related users in the role in service. Then all the members in your group or members affected by this permission to this role. 

 

For the external members, I suggest you to add the user as guest to Azure Active Directory in advance and share the report / dashboard to them. For more details, please check the online document.

 

333.png

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @geckodead,

 

Based on my test,  even though you use the USERPRINCIPALNAME () on Power BI Desktop, you should also go to security setting of the data set you just published to add users. The advantage of using  USERPRINCIPALNAME () or username() is that you needn’t to add multi roles in Power BI desktop. For example, you create a role using DAX [username] = USERNAME() in desktop and add some related users in the role in service. Then all the members in your group or members affected by this permission to this role. 

 

For the external members, I suggest you to add the user as guest to Azure Active Directory in advance and share the report / dashboard to them. For more details, please check the online document.

 

333.png

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @geckodead,

 

Does that make sense? If so, kindly mark my answer as a solution to close the case please.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors