Ejemplo n.º 1
0
 public void AddMember(Group group, User user)
 {
     string memberUrl = string.Format("{0}{1}/directoryObjects/{2}",
         GraphClient.BaseUri.AbsoluteUri, GraphClient.TenantID, user.ObjectId);
     GraphClient.Group.AddMember(group.ObjectId, new GroupAddMemberParameters(memberUrl));
 }
Ejemplo n.º 2
0
 public void RemoveMember(Group group, User user)
 {
     GraphClient.Group.RemoveMember(group.ObjectId, user.ObjectId);
 }
 private void DeleteAdGroup(ResourcesController controllerAdmin, Group group)
 {
     if (group != null)
     {
         controllerAdmin.GraphClient.Group.Delete(group.ObjectId);
     }
 }