def enroll_user(self, user, enrollment_type, **kwargs):
from canvasapi.enrollment import Enrollment<EOL>from canvasapi.user import User<EOL>kwargs['<STR_LIT>'] = obj_or_id(user, "<STR_LIT:user>", (User,))<EOL>kwargs['<STR_LIT>'] = enrollment_type<EOL>response = self._requester.request(<EOL>'<STR_LIT:POST>',<EOL>'<STR_LIT>'.format(self.id),<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>return Enrollment(self._requester, response.json())<EOL>
Create a new user enrollment for a course or a section.

:calls: `POST /api/v1/courses/:course_id/enrollments \
<https://canvas.instructure.com/doc/api/enrollments.html#method.enrollments_api.create>`_

:param user: The object or ID of the user to enroll in this course.
:type user: :class:`canvasapi.user.User` or int
:param enrollment_type: The type of enrollment.
:type enrollment_type: str
:rtype: :class:`canvasapi.enrollment.Enrollment`