如何解决Microsoft Graph API-将成员添加到组ERROR 404无效版本:组
我正在创建Power Automate Powerapp,它在O365租户中创建了一个用户。我几乎无所事事,但是当我尝试将用户添加到所选的Distrolist,o365组或安全组时,我收到“无效版本:组”的响应错误,它带有404错误,但组ID是正确,到现在为止,我已经对用户执行了许可证调用,因此可以进行操作和“获取”。因此,我不明白该错误的含义。 Graph(v1.0)只有一个可用的版本。谁能帮我。我将尝试从Power automate中发布尽可能多的原始代码。
流量输入:Flow Input 流量输出如下:
{
"statusCode":404,"headers":{
"request-id":"*******-00f8-4fb8-976b-976445fbff35","client-request-id":"f6f1574c-00f8-4fb8-976b-976445fbff35","x-ms-ags-diagnostic":"{\"ServerInfo\":{\"DataCenter\":\"Central US\",\"Slice\":\"SliceC\",\"Ring\":\"2\",\"ScaleUnit\":\"001\",\"RoleInstance\":\"AGSFE_IN_21\"}}","Strict-Transport-Security":"max-age=31536000","x-ms-apihub-cached-response":"true","Cache-Control":"private","Date":"Thu,27 Aug 2020 22:43:12 GMT","Content-Length":"225","Content-Type":"application/json"
},"body":{
"error":{
"code":"ResourceNotFound","message":"Invalid version: groups","innerError":{
"date":"2020-08-27T22:43:13","request-id":"*******-00f8-4fb8-976b-976445fbff35"
}
}
}
}
这是Graph API连接器架构:
/groups/{id}/members/$ref:
patch:
responses:
default:
description: default
schema:
type: object
properties:
value:
type: array
items:
type: object
properties:
id: {type: string,description: id}
description: value
summary: Add-GroupMember
operationId: Add-GroupMember
parameters:
- {name: id,in: path,required: true,type: string}
- {name: 'content-type:',in: header,required: false,type: string,default: application/json,x-ms-visibility: advanced}
- name: body
in: body
required: false
schema:
type: object
properties:
members@odata.bind:
type: array
items: {type: string}
description: members@odata.bind
希望所有这些对您有所帮助。让我知道您是否还需要其他任何东西,但是我对这些东西还是陌生的,所以对它进行解释将很有用。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。