Authentication problam

i am using restful authentication plug-in in my rails application, it
working fine for creating user and login, i want to add other
functionality like adding sub user to the main users, and i need some
other exra fields for the subuser. but when i tries to create subusers,
it is created but it has the same functionality like the main user.

where could i change the code to create a subuser with required
privileges and roles.

what are the changes we need to do in the controllers and restful
authentication plug-in.