One of my HelpDesk team if it was possible to remove the ability for students to see other student's enrollments in Canvas.
Hiding 'People' from the course navigation items would do the job.
If you wanted students to be able to see the People tool but not be able to click on a classmate and see what else they are enrolled on; for that you'd need some custom coding - a shout out to the canvas developers group would be a good start for that!
So, wait. Hiding "People" in the course navigation column also removes a courses students as options to send messages to for their classmates? Just to confirm...
Hiding "People" won't do that I'm afraid, but if Aaron Coonce's goal is to "to remove the ability for students to see other student's enrollments in Canvas" then doing this would prevent a student from being able to click on a classmate and easily see all the other courses they're also enrolled on
Just to add to what Adam Craik has said, I did a bit of searching in the Community because I remember this topic has come up before. While hiding People will work in a course site, one must remember that students might also (being the clever folks that they can be) see people's names via the Canvas Inbox while composing a message in one of their classes or within student groups, should they be in them. Indeed, the Canvas Developers is a place to check as Adam stated, and here are a few links to somewhat similar discussions in the past, neither of which were resolved:
Can you hide student names in the Inbox?
Hide 'people' in groups?
Any chance you could share that code snippet, Erick?
Retrieving data ...