Buddypress Group Membership Options

Hello,

I am looking to harness greater control for buddypress groups membership settings.

Out-of-the-box buddypress settings allow groups to be set as public, private, and secret. This controls access/visibility to groups, as well as allowing or preventing members from joining groups.

I am looking to have have "public groups" but prevent users from being able to join or leave the group. Is there a way to prevent members from being able to join or leave groups?