Get-MgBetaReportServicePrincipalSignInActivity fails
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- powershell
- 領域
- api, authorization, tooling
研究方向
從 Get-MgBetaReportServicePrincipalSignInActivity 開始,將其要求、權限和角色處理方式與成功的 Graph Explorer 要求進行比較。使用 issue 中列出的 scopes,透過 Connect-MgGraph 重現該要求。完成的標準是:cmdlet 傳回服務主體登入 JSON,或明確指出所需的角色差異。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
trying to pull ServicePrincipal Signin Data.
Get-MgBetaReportServicePrincipalSignInActivity
Authenticated as GA and Security Admin. Cannot get powershell query to return results. RAW API query is successful in Graph Explorer
Get-MgBetaReportServicePrincipalSignInActivity_List: User is not in the allowed roles
Status: 403 (Forbidden)
ErrorCode: Authentication_RequestFromUnsupportedUserRole
Date: 2026-02-20T00:29:35
Expected behavior
return proper JSON data for SP Signin activity
"@odata.context": "https://graph.microsoft.com/beta/$metadata#reports/servicePrincipalSignInActivities",
"@odata.nextLink": "https://graph.microsoft.com/beta/reports/servicePrincipalSignInActivities?$skiptoken=3f1d26a74d2c66ee0ffa2bd59ec9229ed6aace91038bc5e1509a55de05c5b150",
"@microsoft.graph.tips": "Use $select to choose only the properties your app needs, as this can lead to performance improvements. For example: GET reports/servicePrincipalSignInActivities?$select=appId,applicationAuthenticationClientSignInActivity",
"value": [
{
"id": "MDAwMDAwMDItMDAwMC0wMDAwLWMwMDAtMDAwMDAwMDAwMDAw",
"appId": "00000002-0000-0000-c000-000000000000",
"lastSignInActivity": {
"lastSignInDateTime": "2026-02-19T17:02:22.8258112Z",
"lastSignInRequestId": "db867493-60ee-4371-898a-8f6597750b00"
},
"delegatedClientSignInActivity": {
"lastSignInDateTime": null,
"lastSignInRequestId": null
},
"delegatedResourceSignInActivity": {
"lastSignInDateTime": "2026-02-19T17:02:22.8258112Z",
"lastSignInRequestId": "db867493-60ee-4371-898a-8f6597750b00"
},
"applicationAuthenticationClientSignInActivity": {
"lastSignInDateTime": null,
"lastSignInRequestId": null
},
"applicationAuthenticationResourceSignInActivity": {
"lastSignInDateTime": "2026-01-21T23:53:34.3439822Z",
"lastSignInRequestId": "54742ab6-89bd-4ff6-be5c-c42f673c1a00"
}
},
{
"id": "MzhhYTNiODctYTA2ZC00ODE3LWIyNzUtN2EzMTY5ODhkOTNi",
"appId": "38aa3b87-a06d-4817-b275-7a316988d93b",
"lastSignInActivity": {
"lastSignInDateTime": "2026-02-19T17:02:22.8258112Z",
"lastSignInRequestId": "db867493-60ee-4371-898a-8f6597750b00"
How to reproduce
Connect-MgGraph -Scopes "AuditLog.Read.all","Directory.Read.All"
Get-MgBetaReportServicePrincipalSignInActivity
SDK Version
No response
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
- 主要語言
- C#
- 星號
- 904
- 分支
- 235
- 平均合併
- 1 天 23 小時
- 30 天內合併 PR
- 22
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoftgraph/msgraph-sdk-powershell 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 84/100
microsoftgraph/msgraph-sdk-powershell#3752 ·
維護者通常 1 天內回覆
-
status:waiting-for-triage type:bug
難度 4/5 3-5 天 新手友好度 55/100
microsoftgraph/msgraph-sdk-powershell#3831 ·
維護者通常 1 天內回覆
-
status:waiting-for-triage type:feature
難度 5/5 一週以上 新手友好度 8/100
microsoftgraph/msgraph-sdk-powershell#3827 ·
維護者通常 1 天內回覆
-
status:waiting-for-triage type:bug
難度 4/5 3-5 天 新手友好度 22/100
microsoftgraph/msgraph-sdk-powershell#3822 ·
維護者通常 1 天內回覆
-
Connect-MgGraph on 2.41 crashes when making a connection with cert, fixes when using 2.39 or lower未關閉status:waiting-for-triage type:bug
難度 4/5 3-5 天 新手友好度 48/100
microsoftgraph/msgraph-sdk-powershell#3816 ·
維護者通常 1 天內回覆
查看 microsoftgraph/msgraph-sdk-powershell 的全部 Issue
相似的 Issue
-
Importer: an empty or non-numeric Error cell is imported as 0 instead of missing可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
Open-Systems-Pharmacology/OSPSuite.Core#3049 ·
維護者通常 1 天內回覆
-
needs attention public-client untriaged
難度 2/5 1-3 小時 新手友好度 73/100
AzureAD/microsoft-authentication-library-for-dotnet#6242 ·
維護者通常 2 天內回覆
-
難度 1/5 1-3 小時 新手友好度 90/100
criticalmanufacturing/cli#882 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
Dome-Works/DOME#129 ·
維護者通常 1 天內回覆
-
bug sev:L
難度 2/5 1-3 小時 新手友好度 82/100
Systemorph/MeshWeaver#7480 ·
維護者通常 1 天內回覆