I think the group leader capabilities comes from the Learndash Plugin. Here is what LearDash says about user capabilities:
Below are the LearnDash user capabilities, which you can assign to other WordPress user roles (or custom roles) when using a plugin like User Role Editor.
group_leader ( both a role capability and user role)
// All Admin LD Assignment custom capabilities
// All Admin LD Quiz Essay custom capabilities
// All Admin LD Quiz custom capabilities
WordPress standard capabilities are also used. For example:
Access to the Users > All Users listing is controlled by WordPress. The user must have the ‘list_users’ capability.
When editing a user’s profile (not their own) the current user must have the ‘edit_users’ capabilities in order to see certain admin-level items like the ability to manually complete course steps or add a user to a group etc.
Access to the various LeandDash LMS sub-menus. For the custom post type like course, lesson, topic and quiz are set when the custom post type is registered. For example for courses the WP capabilities are mapped to the extended custom post type capabilities
read_course -> read_post
publish_courses -> publish_posts
edit_courses -> edit_posts
Can you help me with it?