Member of group using custom attribute

hi everyone, I would need to extend the groups so that the members can be done using a proprietary attribute (ouCode) is there any guide I can follow to extend the management interface (UMC) ?

kind regargs.