B2B Magento 2 Module Development How to create role and permission programmatically using the B2B module Adobe Commerce? By Sudhanshu Bajaj on Tuesday, December 12, 2023 Here is a piece of code to create a role by company ID.