function onLoad(execCtx) {
const formCtx = execCtx.getFormContext();
const roleName = "Project User";
const isUser = Xrm.Utility.getGlobalContext().userSettings.roles.get(r => r.name == roleName);
if (isUser) {
formCtx.ui.tabs.get("tab_6").setVisible(false);
}
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.