The relevant code is here: https://github.com/edx/edx-platform/blob/master/common/djangoapps/user_api/middleware.py#L29

The field is called 'course_user_tags', and it contains a dictionary with all of the tags for that user in that course (from the `user_api_usercoursetag` table, with the same keys and values as in the table).