user-guides

Partner users accessing Power BI in MedY tenant


Why this usecase/condition here (in plain terms)

Power BI is protected by Microsoft Entra ID.
That means anyone who opens a Power BI report in the MedY tenant must authenticate through MedY Entra (because the Power BI content belongs to MedY’s tenant).

The “best” single sign-on experience would be:

However, for Entra to automatically redirect a user like user@XXX.com to an external IdP (Keycloak), Entra typically requires the partner domain (XXX.com) to be verified in MedY Entra. Verification is done via a DNS record in the partner domain—something the partner may or may not do.

As a result, MedY cannot configure domain-based routing for @XXX.com, and we needed to check other supported alternatives.


One of the production-supported options:

What it means

User experience (high level)

Pros

Cons / tradeoffs

Best fit when


Another production-supported option:

Option B (SSO-optimized): Keycloak → Entra ID (Direct Federation + Domain Routing) → Power BI

What it means

MedY configures Microsoft Entra to:

Partner users still exist in MedY Entra as B2B guest users so they can be authorized to Power BI workspaces/reports. When a partner user signs in to Power BI, Entra recognizes their email domain and redirects authentication to Keycloak.

Key dependency: each partner domain that should be routed (e.g., XXX.com) must be verified in the MedY Entra tenant (typically via a DNS TXT record published by the partner).


User experience (high level)

First-time access

  1. User signs into the MedY application via Keycloak (partner IM → Keycloak).
  2. User clicks the Power BI link.
  3. MedY onboards the user as a guest in MedY Entra (invitation/acceptance) and assigns permissions.
  4. User opens Power BI report.
  5. Power BI redirects to MedY Entra for sign-in.
  6. Entra sees the user’s domain (e.g., @XXX.com) and redirects to Keycloak.
  7. Keycloak completes sign-in (often silent because the user is already signed into the MedY app).
  8. Power BI report loads.

Subsequent access


Pros


Cons / tradeoffs


Best fit when