Getting 500 error while calling graph client's create_group function
还没有人认领这个 Issue。
评估
调研方向
从 graph_client.create_group 调用入手,将其参数与 issue 中所示的可正常工作的 Azure DevOps POST 端点进行比较。检查 GraphGroupOriginIdCreationContext 如何传递给客户端,并确定 500 错误是由客户端的使用方式还是库引起的;完成标准是记录原因并确认适当的修正方案。
由索引模型根据 Issue 内容生成。
描述
Objective: I want to add a MS Entra group to a ADO Group. I can successfully do it using the API POST https://vssps.dev.azure.com/<>/_apis/graph/groups?groupDescriptors=vssgp.Uy0....&api-version=6.0-preview.1
but whenever I am trying to use the following code I am getting a 500 error:
class GraphGroupOriginIdCreationContext(GraphGroupCreationContext):
_attribute_map = {
'origin_id': {'key': 'originId', 'type': 'str'}
}
graph_client = connection.clients_v6_0.get_graph_client()
def init(self, origin_id=None):
super(GraphGroupOriginIdCreationContext, self).init()
self.origin_id = origin_id
new_group = GraphGroupOriginIdCreationContext(origin_id="<>")
graph_client.create_group(new_group, group_descriptors="vssgp.Uy0....")
Can anyone tell me where I am getting it wrong or is this a bug?
- 主要语言
- Python
- 星标
- 684
- 派生
- 218
- 平均合并
- 8 天 10 小时
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/azure-devops-python-api 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 55/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 1/5 1 小时以内 新手友好度 55/100
-
难度 3/5 1-2 天 新手友好度 45/100
-
难度 2/5 1-3 小时 新手友好度 38/100
microsoft/azure-devops-python-api#526 · 1 条评论 ·
查看 microsoft/azure-devops-python-api 的全部 Issue
相似的 Issue
-
area/auth bug comp/agent P3 platform/discord type/security
难度 2/5 1-3 小时 新手友好度 88/100
NousResearch/hermes-agent#117848 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
bancolombia/sentinel#23 ·
-
test md 未关闭CI
难度 2/5 1-3 小时 新手友好度 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
难度 2/5 1-3 小时 新手友好度 74/100
langchain-ai/deepagents#6450 ·
-
bug client
难度 2/5 1-3 小时 新手友好度 88/100