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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
apenaranda
Post Partisan
Post Partisan

Divert to page index project app owns data

Hello,
I expose data:
I use the App Owns Data project, a basic project, since it doesn't ask for user/pwd and creates the embed whoever it is.
In homcontroller.cs:
There is the basic structure where is index:

public ActionResult Index(string nombre) {
            return View();
    }

There is also the report part:

 

public async Task<ActionResult> Dashboard() {
      DashboardEmbeddingData embeddingData = await PbiEmbeddingManager.GetDashboardEmbeddingData();
      return View(embeddingData);
    }

 

The question is, is there a chance for it to show Dashboard if it meets a requirement?

Something similar to an if…

if (login == "pepe")
            {
                DashboardEmbeddingData embeddingData = await PbiEmbeddingManager.GetDashboardEmbeddingData();
                return View(embeddingData);
            }
            return View();

 Basically make it only go to the Dashboard page if it meets, if it doesn't meet I would like it to go to the Index page
Thank you very much

1 REPLY 1
Anonymous
Not applicable

Hi @apenaranda ,

Please review the following links, hope they can help you get the solution.

Row-level security with Power BI Embedded

Power BI Embedded Row Level Security

Since the "App Owns Data" only use one Power BI account, we can't identify the end users (your application users) with Power BI accounts.

1. No, the users are your application users. 

 

2. In one words, there is only one Power BI account in this scenario. The end users are identified by the tokens. So it won't work here that we assign roles in Power BI Service. Please refer to: #considerations-and-limitations.

>>>Assignment of users to roles within the Power BI service does not affect RLS when using an embed token.

 

3. Yes, if we assign roles to users in the Service, they must be Power BI users. But this won't be necessary in this scenario. Please refer to the item 2 above for reasons.


APP OWNS DATA

Best Regards

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.