How to get the group of the camera

​Like this

but,My code can only get the list of cameras

   public static List<Item> GetCameras()

   {

       List<VideoOS.Platform.Item> item = Configuration.Instance.GetItems(ItemHierarchy.SystemDefined);

       List<Item> cameraList = FindAllCameras(item);

       return cameraList;

   }

   private static List<Item> FindAllCameras(List<Item> oItem)

   {

       // ItemHierarchy.SystemDefined

       List<Item> cameraList = new List<Item>();

       if (oItem != null)

       {

           foreach (Item item in oItem)

           {

               if (item.FQID.FolderType == [FolderType.No](https://FolderType.No) && item.FQID.Kind == Kind.Camera)

               {

                   cameraList.Add(item);

               }

               if (item.FQID.FolderType != [FolderType.No](https://FolderType.No))

               {

                   List<Item> check = FindAllCameras(item.GetChildren());

                   if (check != null && check.Count > 0)

                       cameraList.AddRange(check);

               }

           }

           return cameraList;

       }

       return null;

   }

So you need to develop a routine that can give you an understanding of the “tree” so that you know the group(s) the camera belongs to. Please explore the ConfigAccesViaSDK sample for a visualization of the tree that comprises the configuration.