我最近安装了Azure Active Directory Graph Client Library 2.0.2 Nuget包,无法将成员添加到组,无论是向组添加组还是将用户添加到组我在调用AddLink函数时收到以下错误:
"[System.InvalidOperationException] = {"上下文当前没有跟踪实体."}
我的代码:
IGroup group = azureClient.Groups.GetByObjectId("Guid here").ExecuteAsync().Result;
IGroup groupToAdd = azureClient.Groups.GetByObjectId("Guid here").ExecuteAsync().Result;
azureClient.Context.AddLink(group, "Members", groupToAdd);
azureClient.Context.SaveChanges();
Run Code Online (Sandbox Code Playgroud)
我无法在进行Google搜索时发现任何与Azure Active Directory图形客户端库相关的错误,因此对此有任何帮助将非常感激.