You can check the group via making Ajax request if user is not part of group and you can execute code to disable or hide options.
You just need to write extra JS code in above code to make ajax request and execute code
(function($, $document) {
"use strict";
// code to make ajax request and get true or false
if(true){
$(document).on("click", ".editor-GlobalBar-layerSwitcher", function(e) {
var field = $("button.js-editor-LayerSwitcherTrigger[coral-list-item]");
if (typeof field !== undefined) {
field.each(function() {
if($( this ).val() === "Scaffolding" || $( this ).val()==="Timewarp"){ // can be added targeting, design, developer
$( this ).attr("disabled", true);
}
});
}
});
}
})($, $(document));
Arun Patidar