Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Get-PowerBIActivityEvent -StartDateTime $StartDate -EndDateTime $EndDate | ConvertFrom-Json |Out-File -FilePath C:\AuditLogs\RSActivityLog.json
Get-PowerBIActivityEvent : Operation returned an invalid status code 'Unauthorized'
At line:1 char:1
+ Get-PowerBIActivityEvent -StartDateTime $StartDate -EndDateTime $EndD ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Microsoft.Power...BIActivityEvent:GetPowerBIActivityEvent) [Get-PowerBIActivityEvent], HttpOperationException
+ FullyQualifiedErrorId : Operation returned an invalid status code 'Unauthorized',Microsoft.PowerBI.Commands.Admin.GetPowerBIActivityEvent
Solved! Go to Solution.
Hi @KrishnaKolwuri ,
What Operation did you do before the warning happened? And what's your Power BI License? Maybe related to these factors.
In fact, there are multiple administrator roles in Power BI, first, you can ask "Office 365 Global Administrator" to check if you have the corresponding identity and permissions in office 365 admin portal.
What is Power BI administration?
If these's OK, please refer to these:
https://stackoverflow.com/questions/49037233/operation-returned-an-invalid-status-code-unauthorized
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi,
The account need Power BI Administrator AND have the licence on Power BI Free.
Hi @KrishnaKolwuri ,
What Operation did you do before the warning happened? And what's your Power BI License? Maybe related to these factors.
In fact, there are multiple administrator roles in Power BI, first, you can ask "Office 365 Global Administrator" to check if you have the corresponding identity and permissions in office 365 admin portal.
What is Power BI administration?
If these's OK, please refer to these:
https://stackoverflow.com/questions/49037233/operation-returned-an-invalid-status-code-unauthorized
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello,
I have the some problem. I can login with Tenant credential, but I don't get error:
Operation returned an invalid status code 'Unauthorized':
using (var client = new PowerBIClient(new Uri("https://api.powerbi.com/"), m_tokenCredentials))
{
var reports = await client.Reports.GetReportsInGroupAsync(WorkspaceId).ConfigureAwait(false);
Workspace Id exist and if I login with username and password credentials It works.
In power Bi:
I have try se applay permision to the entrier organziation. But in all case I get the some error
azure application permission:
What I do wrong?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
40 | |
21 | |
20 | |
15 | |
15 |
User | Count |
---|---|
27 | |
20 | |
18 | |
16 | |
14 |