Forum Discussion
Anonymous
1 year agoNot applicable
Get-PowerBIActivityEvents returns a list of objects with empty list attributes
I have the following code: $start = (Get-Date).AddHours(-10).ToString("yyyy-MM-ddTHH:mm:ss")
$end = (Get-Date).ToString("yyyy-MM-ddTHH:mm:ss")
# Don't pipe through Out-String or ConvertFr...
- 1 year ago
Hi Anonymous ,
Thank you for reaching out to Microsoft Fabric Community Forum.
The error you're getting from Get-PowerBIActivityEvents means your current Power BI account doesn't have the required admin privileges to access activity log data.
You must have :
-
Power BI Service Administrator OR
-
Office 365 Global Administrator
If you're not one of these, you'll need to request access from your IT/Admin team.
Regards,
Chaithanya.
-
Deku
1 year agoSuper User
This is a wrapper on the Get Activity Events API. Make sure you are fabric admin or using a service principal with delegated permissions.
Anonymous
1 year agoNot applicable
If I didn't have fabric admin role, I think I would have gotten 403 unauthorized but now I'm just getting bad request. Can you confirm if this is true?