When you enrol for a course, you have the option to share or not share your profile data with the course administrator.