Dinesh the user type is local to dotlrn and dotlrn is a vertical application built on the modules of openacs. You must try to use the approach followed in the dotlrn create scripts in your application. But I would suggest you could use a simpler approach for your application by directly using the groups api for handling roles.