If you are only enrolling a few users into a course, you can manually enroll them.
If you need to enroll a large number of users into a course, you can upload a text (.csv) file to bulk enroll users to courses.
You can automate course enrollment by synchronizing course enrollment with branch membership via the branch sync enrollment method.