Questions tagged [user-roles]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
6
votes
5answers
4k views

Role resource tree not displaying in magento2

Magento 2.0.2 I am trying to add a new user role, but when I go to the Role Resource tab it doesn't display the Resources tree. I have no errors displaying. What is the next step to try and figure out ...
6
votes
1answer
2k views

How does Magento2 Access Control List work?

I have been looking over the internet for an exposition of access control lists in Magento2 and will appreciate any insight on this.
5
votes
1answer
11k views

How to assign a group to user programmatically on registration

I would like to assign role to users on registration from my module. I checked the createPostAction() method of Mage_Customer_AccountController class where i found these lines: $customer->save(); ...
5
votes
1answer
7k views

How do I reset administrator Role permissions

If you have managed to loose your role permissions, like this: How do I reset Magento Admin User Role
5
votes
1answer
662 views

Magento 2: What is diffrence between _isAllowed & _isAllowedAction?

We have below methods. It generally used for User Role wise Module Permission, as per set. In Controller: _isAllowed In Block: _isAllowedAction At which stage & when this method is called & ...
5
votes
3answers
2k views

Magento 2.1.0 Roles Resource Tree not showing

in the backend, going to system->roles, adding a new role and setting it to custom permissions, the resource tree is empty. Stepping through the code I can see, in module_user/Block/Role/Tab/Edit.php ...
5
votes
1answer
2k views

Magento 2 : User Role and Permission Issue (ACL Issue)

In my magento2, I have created one user role with custom permission in which I give permission only for "Shipping Methods" to user. When I login with this user, it also show me other custom extension ...
4
votes
1answer
11k views

get current logged in user role

I have created new user from admin > permission > user . Now I want to get current user permission role $roleId = Mage::getSingleton('customer/session')->getCustomerGroupId(); $role = Mage::...
4
votes
3answers
3k views

How to remove Export option from Sales/Order grid?

I want to remove the following from sale order grid: New Order RSS Export to: MassAction block for a particular admin user role. I currently use adminhtml_block_html_before event to remove the ...
4
votes
2answers
547 views

Attribute sets based on user role

I have been charged with customizing Magento 1.9.1 and my question seems complicated to me, but might not to a seasoned MageDev. What I want to do is have an attribute set, say "UniqueChoice", and in ...
4
votes
2answers
3k views

How do I reset Magento Admin User Role

I went into Admin->System->Permission->Roles & edit the role for Admin Now, i am unable to re-set back it to original "ALL" permissions. How can i revert back to original settings ? Thanks
4
votes
2answers
1k views

CE 1.9.1.1 - Determine which user created backend order

we have created a Telesales role inside Magento with relevant permissions, and have assigned users (Telesales agents) against that role. Now I am aware of the SO post Differentiating Backend vs. ...
4
votes
1answer
179 views

Can I add a user to more than one role?

For instance, say I have the role "category manager" and the role "product manager", but then there are some users which need to have access to both categories and products. Ideally, I would like to ...
4
votes
0answers
2k views

How to restrict access to user for particular store in Magento 2?

I have a requirement where multiple stores are created under one website. Now, I want to create role so that role has access only to the particular store. For e.g. If there is role Dell Manager so ...
3
votes
3answers
8k views

How to give custom acces permissions for admin users(roles) to an extension magento

I have created a admin user in magento and give certain access permissions, and i have an extension called support ticket, i gave user role access to this extension, when i logged in that particular ...
3
votes
2answers
6k views

Magento 2 - How to get admin user role?

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'); $...
3
votes
3answers
1k views

Fatal error when try to create a user role

When I try to create a new user role from admin , it is throwing an error Fatal error: Class 'Mage_Amlocator_Helper_Data' not found in /var/www/vhosts/stand-out.net/httpdocs/app/Mage.php on line 547
3
votes
3answers
4k views

Custom module menus are not showing in another user account

My custom module is not showing its menus in another user role account. Here is the adminhtml.xml-- <?xml version="1.0"?> <config> <menu> <kartparadigm_storecredit ...
3
votes
1answer
3k views

Magento REST role and Users Roles: which are the difference and how they are related?

I understood the meaning of roles for the users and how to manage them, but I didn't understand well the meaning of the REST roles and if they interact/interfere each other. I couldn't find any ...
3
votes
1answer
313 views

Custom Module: Send email to "Super Admin(s)" when new Admin User Account is created

I'm working on a module with the following objective: Once a new Admin User Account is registered to the system an automated email should be sent to all Admin Users which have the Administrators ...
3
votes
1answer
674 views

Mass action tree drop down issue in magento2

I am trying to create a custom drop down option in Action section in the sales order Grid. The main gold is to bring custom Option(Assign to User) in Action Drop down. Then once Assign to user is ...
3
votes
1answer
270 views

extending magento ACL

I was tasked with extending Magento ACL functionality and allowing one user to hold more than one role. I have been jumping from blog to blog and file to file for the last week - all I can find says ...
2
votes
3answers
2k views

List all user email ids based on role_name in magento 2?

In Magento 2, We want to list all user email id's by using their role_name. How we can achieve in one collection with optimal way? Thanks!
2
votes
1answer
2k views

How to add admin user role programatically?

I need to add user role and set that user to edit/add/view only specific products on admin page.
2
votes
2answers
357 views

Copy role resources to other role programatically

As title says i want copy role resources from one to other. For example: I give one of my role id which is dynamically and then i get all resouces for that role id and assign that resources to other ...
2
votes
1answer
876 views

Admin users seem to be deleting and adding themselves on Magento

I'm witnessing a bit of a weird predicament at the moment on Magento and I'm not really sure to make of it all. A few days ago I got an e-mail from some people from my company informing me that ...
2
votes
1answer
749 views

How to restrict admin access based on Role Created with IP?

I have created 2 separate roles under Permission -> Roles. 1). For Employees 2). For Suppliers I was wondering how to restrict Role: Employees to access admin area only from specific IP. We have ...
2
votes
1answer
546 views

Admin User create event

I am working on a new project. I am facing a problem where I need to save the details when an admin user is created. I am planning to use an observer to catch the event. I need to know that is there ...
2
votes
1answer
2k views

How to Reset Magento Admin Permission

Admin role have no permissions, when I log in I just see only a extensions. How to reset permission in database MAGENTO 2 version?
2
votes
1answer
2k views

Magento 2.1- ACL Permissions not Working

I have created a user and given all the required roles to access the module. When we logged in with that particular user , we are able to see the module and module items but when we click on any item ...
2
votes
2answers
446 views

Redirect admin user based on role

We have several admin roles for our product and based on that role they could be redirected to a different section for their initial page. That being said I was curious how to redirect an admin user ...
2
votes
1answer
72 views

Restrict user access to viewing prices in the admin panel (acl)

how to implement functionality that will hide product prices from the user group. I've seen such a feature in an entrepreneurial Magento, but I can't figure out how to implement such a functionality.
2
votes
1answer
83 views

How to restrict user account based on website?

How to restrict user account based on website? How to create website wise user account in magento 1.9.2.3?
2
votes
1answer
285 views

Creating a sales rep role

I am building a magento site to double as our order management system for our sales reps to take orders over the phone. On larger orders, our sales rep need to lower prices for bulk discounting and ...
2
votes
2answers
46 views

Admin user Partial Catalog

Does Magento (EE or CE) have a way of partially restricting catalog access for maintenance? For example, having a user who can only manage products that they personally add OR products in particular ...
2
votes
0answers
24 views

How to add custom config in custom module to role user admin in magento 1

I created a module and use it in the config, but when set role user, it does not show, please help me!
2
votes
0answers
114 views

Unable to Create Roles by Roles Resources "Custom" option type in Magento 2

We are Unable to access Roles Resources "Custom" option type in Magento 2 to add the custom roles. When we select Custom option type, nothing is getting displayed. And also no issue is getting logged ...
2
votes
1answer
5k views

Magento 2: ACL Permission for Admin Module [duplicate]

I have multiple Admin User Roles with Users. For my Custom Module it's not giving "Access denied" for non - authorized Admin. I have followed https://www.mageplaza.com/magento-2-module-development/...
2
votes
0answers
212 views

Magento 2: How to Track Product Price Changes different Admin User Wise?

I have different Admin Users per Role. Need to track price change by particular User. So Magento 2 is storing Old Price? Can we track from Initial Price to How many times price changed? Suppose A ...
2
votes
1answer
586 views

How is data saves in admin_user table [closed]

How should I insert data via in admin_user table via admin/permission/ create user.
1
vote
3answers
10k views

Magento 2 User Access Permission

I am developing a Store in Magento 2. I created an Admin Account at the time of installation of Magento 2. Later I tried to create another User (Who can only add product in the store) from Admin Panel ...
1
vote
2answers
295 views

No user created after magento installation

I installed fresh magento 1.9.2.0 just copied the magento folders and after that created database using cpanel. now, i dont know what username and password to give in backend. i followed this i ...
1
vote
1answer
67 views

Magento 1.9 - User Roles Permission return Fatal error

If i click System -> Permission -> Roles if i click any of roles return following error, Fatal error: Class 'Mage_Cmsmquickview_Helper_Data' not found in /home/abc/public_html/app/Mage.php on line ...
1
vote
5answers
3k views

Sorry, you need permissions to view this content

I have created a admin user by below command. php bin/magento admin:user:create --admin-user="admin1" --admin-password="admin@123" --admin-email="admin1@gmail.com" --admin-firstname="fname" --admin-...
1
vote
1answer
3k views

How to disable product edit fields based on admin role in magento 2

I need to create one admin account for seo editer. This user only edit seo fields in Product edit form and category edit form Default magento 2 Only disable menus, not a fields, I enabled only ...
1
vote
1answer
2k views

Magento 2: how to set role to user programmatically

and also an role $roleAuthModel = $objectManager->create('\Magento\Authorization\Model\Role'); $roleAuthModel->setName("cool role") ->setPid(0) //set ...
1
vote
1answer
245 views

How do I find API User name inside extended API module code?

I have extended out the Magento API so that I can intercept sales_order.list and not expose all orders to a third party API. This worked fine when only one service was using this API, now there is ...
1
vote
3answers
777 views

How to check magento users are logged in or not?

I have 3 Magento users with certain roles and access permission in backend end, i want to know that how many users where logged in, depends up on the logged In users user specific pop up will appear, ...
1
vote
1answer
30 views

Removing sidebar for Catalog_Product_Edit based on role

We have a module that needs a customized product edit page based on the roles of "Administrator" and "Showcase". The showcase user doesn't need all of the stuff that the full admin has and my ...
1
vote
2answers
926 views

Restrict Payment Types by Admin Role or Customer group or rather by store?

I am trying to create a salesrep system for a customers store. These salesreps have limited backend access and can create and edit customers and create orders for their customers as well as viewing ...