I am working on my component in joomla 2.5 and i need to create user groups dynamically through my code.
As i know in 2.5 joomla is using nested sets for maintaining hierarchical structure so it may affect the whole table when we insert any new entry.
Does joomla provide any function that can be directly used to create user group ?
something in which we can specify the parent group and new group will be created under it.
I solved it myself
In my case i need to insert the child groups just under a particular group (mentioned as $parent_id in the code below)