How to allow modules to the user by server side script while creating a user

how can i allow modules to a user by server side script