magento2 – Magento 2 add column to attributes set admin grid

Attribute Set Grid is from vendormagentomodule-catalogviewadminhtmllayoutcatalog_product_set_block.xml

Just override this layout from your module and add the code below to add the attribute set id to the grid

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="adminhtml.catalog.product.set.container">
            <block class="MagentoBackendBlockWidgetGrid" name="adminhtml.catalog.product.set.grid" as="grid">
                <arguments>
                    <argument name="id" xsi:type="string">setGrid</argument>
                    <argument name="dataSource" xsi:type="object" shared="false">MagentoEavModelResourceModelEntityAttributeGridCollection</argument>
                    <argument name="default_sort" xsi:type="string">set_name</argument>
                    <argument name="default_dir" xsi:type="string">ASC</argument>
                    <argument name="save_parameters_in_session" xsi:type="string">1</argument>
                </arguments>
                <block class="MagentoBackendBlockWidgetGridColumnSet" name="adminhtml.catalog.product.set.grid.columnSet" as="grid.columnSet">
                    <arguments>
                        <argument name="id" xsi:type="string">setGrid</argument>
                        <argument name="rowUrl" xsi:type="array">
                            <item name="path" xsi:type="string">catalog/*/edit</item>
                            <item name="extraParamsTemplate" xsi:type="array">
                                <item name="id" xsi:type="string">getAttributeSetId</item>
                            </item>
                        </argument>
                    </arguments>
                    <block class="MagentoBackendBlockWidgetGridColumn" name="adminhtml.catalog.product.set.grid.columnSet.set_id" as="set_id">
                        <arguments>
                            <argument name="header" xsi:type="string" translate="true">Id</argument>
                            <argument name="align" xsi:type="string">left</argument>
                            <argument name="sortable" xsi:type="string">1</argument>
                            <argument name="index" xsi:type="string">attribute_set_id</argument>
                        </arguments>
                    </block>  
                    <block class="MagentoBackendBlockWidgetGridColumn" name="adminhtml.catalog.product.set.grid.columnSet.set_name" as="set_name">
                        <arguments>
                            <argument name="header" xsi:type="string" translate="true">Set</argument>
                            <argument name="align" xsi:type="string">left</argument>
                            <argument name="sortable" xsi:type="string">1</argument>
                            <argument name="index" xsi:type="string">attribute_set_name</argument>
                        </arguments>
                    </block>
                </block>
            </block>
        </referenceBlock>
    </body>
</page>

enter image description here