Symmetry analysis was applied in this work to discuss the behavior of the family R6M23 compounds upon hydrogenation (deuteration), where different structural transformations and magnetic properties, depending on the type of R and M atoms and hydrogen (deuterium) concentrations, have been found. The crystallographic structure of these compounds is described by the Fm3m space group and contain 116 atoms per unit cell occupying the positions 24e(R), 4b, 24d, 32f1 and 32f2(M). Additionally in the elementary cell, there could be up to 100 atoms of hydrogen (or deuterium) occupying the interstitial positions 4a, 32f3, 96j1 and 96k1. The symmetry analysis in the frame of the theory of space groups and their representation gives the opportunity to find all possible transformations from high symmetry parent structure to the structures with symmetry belonging to one of its subgroups. For a given transformation it indicates possible displacements of atoms from initial positions in the parent structure, ordering of hydrogen over interstitial sites and also ordering of magnetic moments, described by the smallest possible number of free parameters. The analysis was carried out by means of the MODY computer program for vectors k = (0; 0; 0) and k = (0; 0; 1) describing the changes of translational symmetry and all positions occupied by the R, M and D atoms.