0
我在使用.NET API SenseNet.Client在sensenet上定義組的成員時遇到問題。關聯成員在Sensenet上使用SenseNet.Client進行分組
我需要創建一個自動過程來在sensenet上添加用戶和組。我知道如何創建用戶和組,但我沒有找到任何有關將用戶添加到組的信息。
下面是我用它來創建一個組代碼:
var group = Content.CreateNew("/Root/IMS/BuiltIn/OUtest", "Group", "testGroup");
group["Name"] = "testGroup";
group["DisplayName"] = "testGroup";
await group.SaveAsync();
謝謝。我沒有注意到方法AddMemberAsync。 –