[Rights] How to assign user in controller?

Hi!

I have some roles in my app.

User who create a group should be assign for "admin" role,

and he should have opportunity for create another user for manage this group, and assign him for role like "admin","editor" etc.

How to do this?