你好stackoverflow社区。有没有办法让我们获得AD用户组的描述符标识符?是否有任何其他目的的api端点?鉴于我们知道广告组的确切名称
谢谢
答案 0 :(得分:0)
好像您希望Graph API到list the groups并拉出您想要的那个。 GraphGroup对象具有 descriptor 属性。
Samples Repo for the .net client libraries包含一些代码来显示api的工作原理。
/// <summary>
/// Returns all groups in account.
/// </summary>
/// <returns></returns>
[ClientSampleMethod]
public PagedGraphGroups GetAllGroups()
{
VssConnection connection = Context.Connection;
GraphHttpClient graphClient = connection.GetClient<GraphHttpClient>();
PagedGraphGroups groups = graphClient.ListGroupsAsync().Result;
foreach (var group in groups.GraphGroups)
{
LogGroup(group);
}
return groups;
}