Forum Discussion

hhout's avatar
hhout
Regular Visitor
1 year ago
Solved

ServicePrincipalIsNotAllowedByTenantAdminSwitch on Pro capacity

Hi,   We are using logic apps to trigger semantic model datafreshes on the correct moments via : https://api.powerbi.com/v1.0/myorg/groups/<>/datasets/<>/refreshes   Previously we were using Prem...
  • anilelmastasi's avatar
    1 year ago

    Hello hhout ,

     

    This is purely a tenant permission issue for the service principal (SP). Even if the SP is added as an admin or member of a Pro workspace, it cannot use the APIs unless the tenant admin has enabled the “Allow service principals” setting and (if scoped) included the SP’s security group.

     

    Could you check if this setting is enabled:

    Power BI Admin Portal -> Tenant Settings -> Allow service principals to use Power BI APIs

     

    If it’s enabled but only scoped to certain security groups, make sure the service principal calling the API is included.

     

    If this solved your issue, please mark it as the accepted solution.