By default, the platform does not have this option. You can use the following CSS code to hide the enrolled users in a course for privacy purposes.
Please follow the steps below:
1. Go to BuddyBoss – Theme Options
2. Under Custom Codes, enable CSS
3. Append the following:
Div.bb-course-member-wrap.flex.align-items-center { Display: none!important }
4. Save changes.
Screenshots
Without Code:
With Code: