I want to remove Assign a Customer Group action from dropdown in customer grid but i cannot override it in custom module, can anyone let me know how to achieve it? i have tried by taking node and removed that action from my custom module customer_listing.xml but it still displays that action.

need to remove this action


Solution given below works magento opensource 2.3.3 and above (tested)

It will work, set actionDisable node to true to disable the MassAction from the dropdown list of actions


<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <listingToolbar name="listing_top">
        <massaction name="listing_massaction" component="Magento_Ui/js/grid/tree-massactions">
            <action name="assign_to_group">


For versions below 2.3.3. use the one explained in the links below



  • it throws error:1 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): The XML in file "/var/www/html/ek/app/code/Expresskitchen/Ekprojects/view/adminhtml/ui_component/customer_listing.xml" is invalid: Element 'actionDisable': This element is not expected. Line: 18 – bhargav shastri Feb 5 at 8:02
  • magento version ? i tested this on 2.3.3 – Haijerome Feb 5 at 8:03
  • Magento ver. 2.3.1 – bhargav shastri Feb 5 at 8:04
  • updated the answer – Haijerome Feb 5 at 8:09
  • thanks, this solution worked for me:magento.stackexchange.com/a/231723/695 – bhargav shastri Feb 5 at 9:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.