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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Dataset provided for effective identity is different from report\'s dataset xxxx-xxx-xxxx-xxxx-xxxxx

When I try to get the embed token for reports via API I get the error "Dataset provided for effective identity is different from report\'s dataset xxxx-xxx-xxxx-xxxx-xxxxx".

 

I did the following steps.

 

1. Created report in Power BI Desktop, lets say abc.pbix.

2. Published to Power BI Service.

3. Get the report Id, group ID

4. Send the required details to my API.

5. My API returns the error speicified (Dataset provided for effective identity is different from report\'s dataset xxxx-xxx-xxxx-xxxx-xxxxx) when I hit the GenerateToken URL. Please I get the DatasetId Programatically for the report.

7. I have not mentioned any effectivy identity. the identiies I am passing is only datasets (no effective identity)

{"identities":[{"datasets":["' + datasets + '"]}]}

6. The account I used to create the report in Power BI Desktop is the account of Power BI Embedded capacity Administrator.

 

I am not sure why I am getting this error while creator of the report and requestor of the report are same.

 

Please advice.

 

Thanks in Advance.

 

Status: Needs Info
Comments
v-jiascu-msft
Microsoft Employee

Hi @sathishkpm,

 

Did you apply any RLS on the dataset? Please refer to this documentation. Maybe you need to specify the roles.

 

Best Regards,

Dale

Vicky_Song
Impactful Individual
Status changed to: Needs Info
 
sathishkpm
Regular Visitor

Hi Dale (@v-jiascu-msft)

 

Thank you for your reply.

 

I solved it by just removing the identities from request body.

 

Per error message that I received, we should not include identities ({"identities":[{"datasets":["' + datasets + '"]}]}) in request body.

 

So need not to mention the dataset ids in request body if you are requesting embed token for "reports" whereas for "dashboards" you need to specify the identies that includes datasets.

 

Thanks

Sathish