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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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