In a course, I can Select "Participants" and click the "Enroll" button, which opens a pop-up as such:
It allows me to select a Cohort to enroll the user in, as well as an enrollment duration.
Now, the problem! It seems that I am not able to perform the same tasks when bulk enrolling users, specifically - adding the users to a cohort upon enrollment. This is a snippet from the bulk enrollment docs:
As you can see, there is no ability to add a Cohort, as there is through the Moodle Admin UI.
Is there any other way to achieve this?