Create Customer Address Programmatically in Magento 2.

You can create Customer address using Programmatically for any existing customer in Magento.

For Create Customer address, you must have a customer created in Magento store. Based on existing customer id, We can create customer address programmatically. Continue reading “Create Customer Address Programmatically in Magento 2.”

How to get Current Admin User roles name and email id in Magento 2?

This blog post is used for
You can get a first name, last name, and email of current admin user roles by calling User module’s Collection class.

You can fetch current user data by below code snippet, Continue reading “How to get Current Admin User roles name and email id in Magento 2?”

Get Current Admin User Role id programmatically in Magento 2.

Magento 2 Contains Multiple Users for the admin panel to access different sections of the functionality based on their User Roles.

You can see User Roles in the admin panel by clicking on the left navigation System -> Permissions -> User Roles. Continue reading “Get Current Admin User Role id programmatically in Magento 2.”