Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
31 | |
30 | |
26 | |
25 |
User | Count |
---|---|
47 | |
33 | |
19 | |
18 | |
16 |