I want to get all information of user(admin) and I find this answer for M1:
To get an admin user role try (assuming that user is log in)
$admin_user_session = Mage::getSingleton('admin/session'); $adminuserId = $admin_user_session->getUser()->getUserId(); $role_data = Mage::getModel('admin/user')->load($adminuserId)->getRole()->getData();
Now I want get this for Magento 2.0. And how to do ?