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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
nastip
Frequent Visitor

Admin - Get Activity Events question on usage

Hi there,

 

Looking at the article from MS:

https://learn.microsoft.com/en-us/rest/api/power-bi/admin/get-activity-events

 

Speficially these two parts of the article

Under Permissions heading

nastip_0-1676274493777.png

 

Under Required Scope

nastip_1-1676274529899.png

 

Does this mean that the registered app can only be setup to do one or the either?

 

As in, if I use it to authenticate as a service principal the registered app must not have Tenant.Read.All or Tenant.ReadWrite.All?

 

However, if I want to use the registered app to request an admin access token Tenant.Read.All or Tenant.ReadWrite.All one of these must be present?

 

Thanks,

 

 

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @nastip,

It mean you need to do both two settings. In fact, the permission of register app should be the prerequisite of rest api usages. You need at least enable one of the scope permission that the document mentions or these api could not able to be used. 

BTW, you can take a look at the official document about 'get started with power bi rest API' usages to know more about them:

Get started with Power BI Embedded - Power BI | Microsoft Learn
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @nastip,

It mean you need to do both two settings. In fact, the permission of register app should be the prerequisite of rest api usages. You need at least enable one of the scope permission that the document mentions or these api could not able to be used. 

BTW, you can take a look at the official document about 'get started with power bi rest API' usages to know more about them:

Get started with Power BI Embedded - Power BI | Microsoft Learn
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors