无法使用“ Jobrole”创建扩展属性。邮差
我想将“ Jobrole”添加为Postman的扩展属性。之后,我想与用户映射并在令牌中获取该属性。
我可以使用 application.readwrite
权限的访问令牌。有了该令牌,我试图将其称为:
查询
https://graph.microsoft.com/v1.0/applications/appID/extensionProperties
body
{
"name": "jobRole",
"dataType": "String",
"targetObjects": [
"User"
]
}
即使我有一个资源,我也会给出错误,并且我给出了正确的appid。
错误
{
"error": {
"code": "Request_ResourceNotFound",
"message": "Resource '2d3c554a-bf16-4b39-80d9-9ff210d6c822' does not exist or one of its queried reference-property objects are not present.",
"innerError": {
"date": "2022-07-08T07:19:19",
"request-id": "c2e96c65-99e3-4387-811b-99282e0b3a8a",
"client-request-id": "665e60ce-357e-f23d-50f2-4c636bb82bd1"
}
}
}
有人可以帮助我缺少作品吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我试图在环境中复制相同的错误,并获得了与以下相同的错误:
请注意,您需要通过
应用程序对象ID
而不是应用程序ID:此处能够成功地创建扩展属性,如下所示:
参考:
创建ExtensionProperty -Microsoft Graph V1.0 |微软文档
I tried to reproduce the same in my environment and got the same error as below:
Please note that, you need to pass
Application Object ID
instead of Application ID:When I passed the
Application Object ID
, I was able create the extension property successfully like below:Reference:
Create extensionProperty - Microsoft Graph v1.0 | Microsoft Docs