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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.