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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
LevGelman
Regular Visitor

Power BI Embedded vs Azure Analyses Services - RLS

Hello,

 

I'm trying to implement the Power BI Embedded for customers for reports that have live connection to Azure Analysis Service applying RLS.

 

While I try to get embed token I got "FeatureNotAvailableError" error.

 

I'm using ClientID and Secret to get auth token from Azure, next I created service principal and granted admin to the releveant workspace. Of course my ClientID have instance admin in my Azure Analysis Services.

I try to send POST report to https://api.powerbi.com/v1.0/myorg/GenerateToken

I have header "X-PowerBI-Profile-Id" for my service principal

My body is 

{
    "datasets": [
        {
            "id""XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
        }
    ],
    "reports": [
        {
            "id""XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
        }
    ],
    "identities": [
        {
            "username""My service principal ID"(same as in X-PowerBI-Profile-Id),
            "roles": [                "Role Name"            ],
            "customData""some data that filter the role",
            "datasets": [
                "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
            ]
        }
    ]
}
 
What I'm missing?

Thank you!
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @LevGelman ,

Service principal only supports some read-only admin APIs. Please check if you have enable service principal authentication for read-only admin APIs in Admin portal.

yingyinr_0-1671170435893.png

And check if you hit any following limitations, please find more details in this official documentation.

yingyinr_1-1671170531053.png

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @LevGelman ,

Service principal only supports some read-only admin APIs. Please check if you have enable service principal authentication for read-only admin APIs in Admin portal.

yingyinr_0-1671170435893.png

And check if you hit any following limitations, please find more details in this official documentation.

yingyinr_1-1671170531053.png

Best Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.