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
MIkkelHyldig
Helper II
Helper II

Group identities in "Identities Username" in Power Automate flow

Hi all,

I created a Power Automate flow using step "Export to File for Power BI Reports" and it works fine using single-user user identity in the "Identities Username" section (see picture). However, I need to embed groups of individuals instead of only one individual identity / username. In RLS settings the individuals are added on a single-user UserPrincipalName function (RLS rule: mail = UserPrincipalName())


Do I need to generate an embed token with the individual users?

I have tried to add mailgroups in the Identities Username section but doesnt work.

Capture.PNG

1 ACCEPTED SOLUTION
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @MIkkelHyldig - I think this Power Automate connector is expecting a User name rather than a User Group because Power BI is excepting Users not User Group to access the report. 

It might possible to overcome this limitation in Power Automate be following these steps if your are using Office 365 Groups:

  1. Define a list of Groups that you want to send reports.
  2. Use the "List group members" to retrieve a list of group members.
  3. Use the first group member to run the "Export to File for Power BI Reports" with the RLS context of the first member.  The first member of the Group is use to impersonate the User.
  4. Send the report to the group members

Note this would only work if the first member of the group does not appear in multiple RLS groups.  e.g. If I am member of RLS group A and B, the report will contain result for both groups.  If this does happen then you might need to consider adding Report level filters to create the output for each group.

View solution in original post

1 REPLY 1
Daryl-Lynch-Bzy
Resident Rockstar
Resident Rockstar

Hi @MIkkelHyldig - I think this Power Automate connector is expecting a User name rather than a User Group because Power BI is excepting Users not User Group to access the report. 

It might possible to overcome this limitation in Power Automate be following these steps if your are using Office 365 Groups:

  1. Define a list of Groups that you want to send reports.
  2. Use the "List group members" to retrieve a list of group members.
  3. Use the first group member to run the "Export to File for Power BI Reports" with the RLS context of the first member.  The first member of the Group is use to impersonate the User.
  4. Send the report to the group members

Note this would only work if the first member of the group does not appear in multiple RLS groups.  e.g. If I am member of RLS group A and B, the report will contain result for both groups.  If this does happen then you might need to consider adding Report level filters to create the output for each group.

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.