azure-active-directory - 无法从图形资源管理器将组添加到我的天蓝色活动目录
问题描述
我正在尝试使用 URL
https://graph.microsoft.com/v1.0/groups
和 JSON 正文从 Graph Explorer 将组添加到我的 Azure Active Directory
{
"description": "Group with designated owner and members",
"displayName": "Operations group",
"groupTypes": [
"Unified"
],
"mailEnabled": true,
"mailNickname": "operations2019",
"securityEnabled": true,
"owners@odata.bind": [
"https://graph.microsoft.com/v1.0/users/{user object id}"
],
"members@odata.bind": [
"https://graph.microsoft.com/v1.0/users/{user object id}"
]
}
但抛出错误消息如下
{
"error": {
"code": "MethodNotAllowed",
"message": "Method not allowed.",
"innerError": {
"request-id": "ba759d0f-3585-4d65-b1e1-204de53186ad",
"date": "2019-11-19T13:37:46"
}
}
}
但我可以得到一个成功的回应https://graph.microsoft.com/v1.0/me
请帮我。我错过了什么?
解决方案
我找到了日志(感谢您提供请求 ID 和时间戳!),看起来该请求是针对消费者帐户(例如 outlook.com 或 live.com)而不是组织帐户的。
根据https://docs.microsoft.com/en-us/graph/api/group-post-groups?view=graph-rest-1.0&tabs=http POST /groups 上的文档,MSA 不支持。
如果您有工作/学校帐户,您可以使用该帐户登录 Graph explorer 吗?
推荐阅读
- python - 在 SWI-Prolog 中实现哈希表
- javascript - 用数组中的元素替换字符“*”的实例 - JavaScript
- java - Java,我可以假设与层次结构的接口吗
- arduino - Arduino光敏电阻
- c++ - 对于列表排序,有没有办法让多个运算符重载具有相同的参数?
- docker - Bitnami/Express 4.16.4 - npm 安装
- amazon-web-services - 启动和关闭适用于 AWS ECS 或 Kubernetes 的实例?
- android - 如何使用 Android Studio 安装 APK 文件?
- r - 过滤数据以仅在两个变量中保留最多 10 个重复项,并且缺少数据
- python-3.x - Python telnetlib 冗长的写入命令