Our requirement is to show only the “Enquiry” section for users belonging to the Sales group.
I explored the Alpha configurations but couldn’t find any straightforward or configuration-based option to control the visibility of side panel menu items based on user groups.
@Is there any standard approach or configuration available to achieve this without using DOM manipulation or custom code?
Any guidance would be helpful.
@Sam @Simphiwe @siddhant @VAjith
const userData = alpha.local.get();
if (userData?.userInfo?.alphaGroupInfo?.includes(‘Underwriting’)) {
const inboxDiv = Array.from(document.querySelectorAll(‘span’))
.find(span => span.textContent.trim() === ‘Inbox’)
?.closest(‘div.hover\\:surface-hover’);
if (inboxDiv) {
inboxDiv.remove();
}
}
using above approach, it works but, But our application already running slow, and adding codes makes it more slower, is their any direct option?