Azure List 治理角色 API 文档表明我们只需要
应用 | PrivilegedAccess.Read.AzureResources 权限。
https://docs.microsoft.com/en-us/graph/api/governanceroleassignment-list?view=graph-rest-beta
但是,当实际仅使用 PrivilegedAccess.Read.AzureResources 权限调用该 API 时,我们看到了如下错误 - 这是文档问题还是产品错误?
{ "error": { "code": "UnknownError", "message": "{\"errorCode\":\"PermissionScopeNotGranted\",\"message\":\"由于缺少权限范围 PrivilegedAccess.ReadWrite,授权失败.AzureResources.\",\"target\":null,\"details\":null,\"innerError\":null,\"instanceAnnotations\":[],\"typeAnnotation\":null}", " innerError": { "request-id": "44bfc8bb-d502-4fb4-bd46-2855b53adf99", "date": "2020-05-11T15:51:22" } }}
io.cloudknox.plugins.azure.AzureRuntimeException: { "error": { "code": "UnknownError", "message": "{\"errorCode\":\"PermissionScopeNotGranted\",\"message\":\"由于缺少权限范围 PrivilegedAccess.ReadWrite.AzureResources,授权失败。\",\"target\":null,\"details\":null,\"innerError\":null,\"instanceAnnotations\":[],\ "typeAnnotation\":null}", "innerError": { "request-id": "44bfc8bb-d502-4fb4-bd46-2855b53adf99", "date": "2020-05-11T15:51:22" } }}
⚠请勿编辑此部分。
@pratima-cloudknox 感谢您提醒我们注意这一点。 我会让内容团队审查文档,如果文档需要更新,请提交 PR 以正确反映必要的权限。
最有用的评论
@pratima-cloudknox 感谢您提醒我们注意这一点。 我会让内容团队审查文档,如果文档需要更新,请提交 PR 以正确反映必要的权限。