Get admin detail via load by user_id in magento 2How to Copy Code/Core system.xml file into Code/local in magentoadd attribute to admin userAdding a grid/table inside grid in Magento Admincustomer registartion success mail change via admin paneladmin last login detailShows “SQLSTATE[42S02]: Base table or view not found----” when I try to access the customer details in admin panelMagento 2: How to get admin user detail load by id?Categories in the Admin panel do not load-ERR (3):Warning:simplexml_load_string():Entity:line9:parser error:Premature end of data in tag config line2User Access PermissionMagento admin url does not load
Should I tell management that I intend to leave due to bad software development practices?
pgfplots: How to draw exponential graph with 60° start angle?
Extract rows of a table, that include less than x NULLs
Venezuelan girlfriend wants to travel the USA to be with me. What is the process?
Why can't we play rap on piano?
Can my sorcerer use a spellbook only to collect spells and scribe scrolls, not cast?
Unable to supress ligatures in headings which are set in Caps
How to prevent "they're falling in love" trope
Can a virus destroy the BIOS of a modern computer?
What is the most common color to indicate the input-field is disabled?
How dangerous is XSS?
Is this a hacking script in function.php?
CAST throwing error when run in stored procedure but not when run as raw query
Is it inappropriate for a student to attend their mentor's dissertation defense?
Is it acceptable for a professor to tell male students to not think that they are smarter than female students?
iPad being using in wall mount battery swollen
How much of data wrangling is a data scientist's job?
Plagiarism or not?
Why didn't Boeing produce its own regional jet?
Theorists sure want true answers to this!
Valid term from quadratic sequence?
Do UK voters know if their MP will be the Speaker of the House?
Ambiguity in the definition of entropy
Would Slavery Reparations be considered Bills of Attainder and hence Illegal?
Get admin detail via load by user_id in magento 2
How to Copy Code/Core system.xml file into Code/local in magentoadd attribute to admin userAdding a grid/table inside grid in Magento Admincustomer registartion success mail change via admin paneladmin last login detailShows “SQLSTATE[42S02]: Base table or view not found----” when I try to access the customer details in admin panelMagento 2: How to get admin user detail load by id?Categories in the Admin panel do not load-ERR (3):Warning:simplexml_load_string():Entity:line9:parser error:Premature end of data in tag config line2User Access PermissionMagento admin url does not load
username = 'admin';
$user_data = Mage::getModel('admin/user')->getCollection()->addFieldToFilter('username',$username)->getData();
var_dump($user_data);
//By Username get admin User's Role Details
$username = 'admin';
$role_data = Mage::getModel('admin/user')->getCollection()->addFieldToFilter('username',$username)->getFirstItem()->getRole()->getData();
var_dump($role_data);
//By ID get admin User's Details
$id = 1;
$user_data = Mage::getModel('admin/user')->load($id)->getData();
var_dump($user_data);
//By ID get admin User's Role Details
$id = 1;
$role_data = Mage::getModel('admin/user')->load($id)->getRole()->getData();
var_dump($role_data);
this code for magento1 . am working on magento 2 . can anyone guide me how get user detail of specific user_id.
admin email
add a comment |
username = 'admin';
$user_data = Mage::getModel('admin/user')->getCollection()->addFieldToFilter('username',$username)->getData();
var_dump($user_data);
//By Username get admin User's Role Details
$username = 'admin';
$role_data = Mage::getModel('admin/user')->getCollection()->addFieldToFilter('username',$username)->getFirstItem()->getRole()->getData();
var_dump($role_data);
//By ID get admin User's Details
$id = 1;
$user_data = Mage::getModel('admin/user')->load($id)->getData();
var_dump($user_data);
//By ID get admin User's Role Details
$id = 1;
$role_data = Mage::getModel('admin/user')->load($id)->getRole()->getData();
var_dump($role_data);
this code for magento1 . am working on magento 2 . can anyone guide me how get user detail of specific user_id.
admin email
add a comment |
username = 'admin';
$user_data = Mage::getModel('admin/user')->getCollection()->addFieldToFilter('username',$username)->getData();
var_dump($user_data);
//By Username get admin User's Role Details
$username = 'admin';
$role_data = Mage::getModel('admin/user')->getCollection()->addFieldToFilter('username',$username)->getFirstItem()->getRole()->getData();
var_dump($role_data);
//By ID get admin User's Details
$id = 1;
$user_data = Mage::getModel('admin/user')->load($id)->getData();
var_dump($user_data);
//By ID get admin User's Role Details
$id = 1;
$role_data = Mage::getModel('admin/user')->load($id)->getRole()->getData();
var_dump($role_data);
this code for magento1 . am working on magento 2 . can anyone guide me how get user detail of specific user_id.
admin email
username = 'admin';
$user_data = Mage::getModel('admin/user')->getCollection()->addFieldToFilter('username',$username)->getData();
var_dump($user_data);
//By Username get admin User's Role Details
$username = 'admin';
$role_data = Mage::getModel('admin/user')->getCollection()->addFieldToFilter('username',$username)->getFirstItem()->getRole()->getData();
var_dump($role_data);
//By ID get admin User's Details
$id = 1;
$user_data = Mage::getModel('admin/user')->load($id)->getData();
var_dump($user_data);
//By ID get admin User's Role Details
$id = 1;
$role_data = Mage::getModel('admin/user')->load($id)->getRole()->getData();
var_dump($role_data);
this code for magento1 . am working on magento 2 . can anyone guide me how get user detail of specific user_id.
admin email
admin email
asked 17 mins ago
HaFiz UmerHaFiz Umer
4019
4019
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268638%2fget-admin-detail-via-load-by-user-id-in-magento-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268638%2fget-admin-detail-via-load-by-user-id-in-magento-2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown