def get_user_in_a_course_level_assignment_data(self, user):
from canvasapi.user import User<EOL>user_id = obj_or_id(user, "<STR_LIT:user>", (User,))<EOL>response = self._requester.request(<EOL>'<STR_LIT:GET>',<EOL>'<STR_LIT>'.format(self.id, user_id)<EOL>)<EOL>return response.json()<EOL>
Return a list of assignments for the course sorted by due date

:calls: `GET /api/v1/courses/:course_id/analytics/users/:student_id/assignments \
<https://canvas.instructure.com/doc/api/analytics.html#method.analytics_api.student_in_course_assignments>`_

:param user: The object or ID of the related user
:type user: :class:`canvasapi.user.User` or int

:rtype: dict