> For the complete documentation index, see [llms.txt](https://docs.sled.so/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sled.so/other-integrations/powerbi.md).

# PowerBI

## PowerBI App Registration, Permission

Go to Azure AD App registration, add “New registration”

![](/files/TewzWccY2grIPf8KHoda)

Default selection is fine, add a name

![](/files/IUJ2IGkgM7JAmXMyWf5m)

Write down Application (Client ID)

![](/files/ow6M2tBB2RMha1Fb11xN)

Add a client secret, change the duration to an appropriate amount. Client secret has to be recreated each time it runs out and must also be changed in Snowboard afterwards

![](/files/dngokwtJKeCH8gLzzwC4)

Write down Value, this is the Client secret for Snowboard

![](/files/9buTXSM2RTqXD0yOIZTB)

Go to API permissions

![](/files/K7FFBKuVUcUPTMQVmEZj)

```
Add “Application Permissions” → “Tenant.Read.All” 
Add “Application Permissions” → “Report.Read.All” 
Add “Application Permissions” → “Report.ReadWrite.All”
```

![](/files/ogeNXL2A48S6eaNVwMUj)

Grant admin consent

![](/files/3bWp5OAFaUWyDLlNkaRH)

Get AzureAD Tenant ID (<https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-to-find-tenant>)

![](/files/3AmboOrnwLsPBpzvMJY9)

**Shouldn’t be necessary, but for completeness sake:** Go to [https://login.microsoftonline.com/{tenant-id}/adminconsent?client\_id={client-id](https://login.microsoftonline.com/%7Btenant-id%7D/adminconsent?client_id={client-id)} and grant permissions

![](/files/9KnVKhzhwfsoP1GpWNKx)

Today Admin endpoints needed

`https://api.powerbi.com/v1.0/myorg/admin/groups`

<https://learn.microsoft.com/en-us/rest/api/power-bi/admin/reports-get-reports-in-group-as-admin>
