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#
- 星标
- 902
- 派生
- 233
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 30
环境准备
- 提供 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 天 新手友好度 22/100
microsoftgraph/msgraph-sdk-powershell#3822 ·
维护者通常 1 天内回复
-
status:waiting-for-triage type:bug
难度 4/5 3-5 天 新手友好度 48/100
microsoftgraph/msgraph-sdk-powershell#3819 ·
维护者通常 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 天内回复
-
status:waiting-for-triage type:feature
难度 4/5 3-5 天 新手友好度 45/100
microsoftgraph/msgraph-sdk-powershell#3806 · 3 条评论 · 3 个 reaction ·
维护者通常 1 天内回复
查看 microsoftgraph/msgraph-sdk-powershell 的全部 Issue
相似的 Issue
-
type/automation type/tech-debt
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
area-integrations
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
:watch: Not Triaged dotnet-framework/svc install-deployment/subsvc
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
has-image has-readme needs-attention new-tool repo-verified
难度 1/5 1-3 小时 新手友好度 62/100
shanselman/TinyToolTown#844 · 2 条评论 ·
维护者通常 3 天内回复
-
:watch: Not Triaged Pri3
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复