Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [user-roles]

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

1
vote
0answers
22 views

Magento user permission unchecked on save custom module

I've developed a small custom module. It worked as expected but I can't save user permission: I can see the module in the admin panel and in the Role Resource Tab (System->Permissions->Roles), but ...
1
vote
1answer
17 views

How to create Admin-User for (Role) specific category-only access in magento2, It Possible or Not?

I have Created two-stores, And I have Add two Root-Category , But I Need to Create Two AdminUser for make(Role to) access for specific one-Store Category. Example (AdminUser A)-> Specific access ...
0
votes
0answers
14 views

Sales order grid not loading for restricted roles in magento2

I have created a new resource with limited access for only dashboard and sales. System >> User Roles then created the new user and assigned the above Role. If i login with the new user which is ...
0
votes
0answers
15 views

Magento2.2 change admin user roles cant login

I have problem when change roles, all account of that roles can't access admin. Step 1. User 1 will login as "CM" roles Step 2. User 2 will update the resources available to role "CM" Step 3. User 1 ...
1
vote
0answers
45 views

Sales orders not showing for new Admin user in magento2

I have created new User here System -> Permission Assigned User Role as Administrator But when logged in with the new user which i created now, I can't see the orders for the newly created admin ...
1
vote
1answer
34 views

User role not working M2 Enterprse

My website has many store view like french,uk,german. I have created user for all the store view and assign resources to them. But when I login in admin panel with german user, I can see all the ...
0
votes
1answer
49 views

How to add new field to Admin User Info in Magento 2?

How can I add a new field which has an integer value into admin user info? I want to add a dropdown on admin user edit form, to select any one admin user which has 'ABC' role, and that will be saved ...
0
votes
0answers
59 views

ACL Resources Access Customization and Admin form customization

I am new to magento so can somebody please help me out? I have created a new user (belonging to custom role group = vendor) who can login to admin panel and add their own products, for that i have ...
1
vote
0answers
25 views

Issue with User Role Resources Tree

I have to get helped in some parts of my website with a friend who is a developer, so he asked me the access to the backend. Being that I don't want to give the full access, I have created a new user ...
0
votes
1answer
149 views

Magento 2.3.0 - User roles and Permissions - module/extension installation issue

I'm running magento 2.3.0 on php 7.1 I have two users each with a different user role/permissions created Users | User Role | Role Resources (resource access) ----------|--------------|-------...
1
vote
1answer
57 views

Activity Approve From super admin in magento 2

I am using Magento 2.2.6, and I need to create two admin user, in which one user change anything, it should be mandatory for another user will approve that. then only the changes will affect. I saw ...
1
vote
2answers
454 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
0answers
137 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?
1
vote
1answer
180 views

Magento 2 - Getting user role

I would like to get the Role of the user logged in. I'm trying to use the \vendor\magento\module-user\Model\User.php class, but all results give me null or empty. I'm trying to use \vendor\magento\...
0
votes
1answer
68 views

My extension links not showing on custom roles on admin

I have created a custom module. When I have created a demo user and select custom roles for that. My module not showing on the admin side. When I select all the rights it's showing but when I select ...
0
votes
1answer
124 views

how could i get all user role list in edit page in my custom module in magento 2

I want to show user role list in my custom module edit page my code is as below $fieldset->addField( 'admin_role_ids', 'multiselect', [ 'name' => 'permission[...
1
vote
0answers
28 views

Magento 2.2.5 - Backups User Roles Permission

I'm using Magento 2.2.5. Steps to reproduce: System -> Permission -> User Roles Backups Sorry, you need permissions to view this content How to fix it?
1
vote
0answers
19 views

How to create admin user with only read customer permissions in Magento-2.1?

I have created one admin role with Customers/All Customers. This user have permissions for access customers,modify customer details, delete customer. But I want to restrict this user to delete ...
0
votes
1answer
31 views

Magento 2 assigning Custom User resources in User roles

When I am trying to create a new User role. After selecting the Custom resource List is Not showing, Can u Please help me how I can do this. I what to Create a login for Product Manager to Upload ...
0
votes
0answers
19 views

Add list of users with specific role as customer attribute

How can I add customer attribute similar to Group attribute but with users with specific user role? With this site > http://www.silksoftware.com/magento-module-creator/magento2x.php I generated ...
0
votes
0answers
74 views

magento2 orders pagination is not working

I'm loading the magento2 admin role. role user having sales tab access only. when the user-roles sees the orders list page, all orders coming. pagination is not working. anyone, please help me. ...
1
vote
1answer
79 views

Backend user role not working - Magento 2.1.9

We can access System>User Role without further problems: but when we get into any option, either the "Add new Role" or the users "Administrators" or "Dealer" we get this blank form: instead of ...
0
votes
0answers
11 views

Only viewing orders / sales data from a customer group as an admin user

I have a few admin users and with some of them I only want them to view orders / sales data from certain customer groups. Could anyone advise how this would be possible?
0
votes
0answers
92 views

Restrict the role permission to read only

I have built my Magento store with the Magento - 1.9.X.X I am trying to create a role with just read-only permissions to all the modules in the admin end. The user should be able to view all the ...
0
votes
0answers
59 views

Magento 2 Permissions messed up

I have got myself into a bit of a pickle managing a magento site for a new business venture. I am pretty out of my depth and am very much a beginner in command line and server management. I have a ...
1
vote
1answer
287 views

Magento 2 User Permission Denied for Admin user

I was creating user roles & permission as an admin in Magento 2, then I mistakenly denied myself permission to add roles and permission. Now It's showing "Access denied". I can't add or change my ...
0
votes
1answer
223 views

Can i create Role for only read permissions of product in magento 2 admin panel

I want to create admin user who is access only read the products in magento 2. Can i create Role for only read permissions of product in magento 2 admin panel.
1
vote
0answers
59 views

How can a role user see only own products not other users in Magento 2?

I am troubling with user roles in Magento 2. When I am trying to assign product permission to a user who can see only own products but all products displaying to him. How can I set a role in which ...
1
vote
0answers
66 views

Magento 2 Particular order assign to sub-admin

Right now I am working with Magento 2 package, there has one out-of-scope Magento task. => Requirement: Customer Place order Admin create sub-admins The super-admin assign the order to sub-admin( ...
0
votes
1answer
20 views

Roles Resources | What is “My Account” for

I found this in the role resources but am not sure what it is responsible for. Enabling and disabling this seems to make no difference. Can someone shine some light on it? Magento ver. 2.1.8
0
votes
1answer
47 views

Admin role automatically unchecked when role is edited Magento 1.9

I have a problem on my Magento webiste and I can't figure why is this happened. I have 2 admin roles: administrator and shopmanager. Administrator role has all the permissions and shopmanager has ...
0
votes
1answer
114 views

How to disable a product using Id in phtml?

I need to disable a product which is added by specific role. My code below: $role_id = 1 ; //get user's role id from system configuration $objectManager = \Magento\Framework\App\ObjectManager:...
1
vote
0answers
57 views

Admin User unable to access webapi

currently developing web application that utilizes magento's customer / admin tokens (magento 2). I am trying to access my custom webapi with resource assigned as "self" using an admin user with a ...
0
votes
1answer
500 views

How to check if user is logged into the admin [duplicate]

I'm trying to create a script then trigger it from time to time to check "who" is logged in in admin (users), so I created this: $adminUser = Mage::getModel('admin/user'); $users = $adminUser->...
0
votes
2answers
335 views

Allow edit product attributes on user permission [closed]

I need my users not able to edit attributes, but they can view the attributes.
2
votes
3answers
1k 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!
1
vote
1answer
309 views

How to set 2 different themes for Mobile and Desktop in Magento 2.1.7 without changing the core file

I am working on Magento store version 2.1. I'm required to show a different layout and design on the Mobile device, which is different from my default view. For this I added a theme in the root ...
1
vote
1answer
895 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.
1
vote
0answers
203 views

Undefined index notice error when trying to add a new user role in magento 2?

I am getting a error "Undefined index: title in \vendor\magento\module-integration\Helper\Data.php on line 24" in magento 2 when trying to add a new user role. please help me
1
vote
1answer
2k 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 ...
0
votes
1answer
298 views

Hide attribute menu for admin role

I make a user role that needs to create a configurable product, to do this I need to give him the ACL for Store/Attribute/product. But I don't want to let him create / add / delete an attribute, so ...
2
votes
0answers
966 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 ...
0
votes
1answer
56 views

How to restrict admin user to log in if already any user logged in

I know about the feature of Admin Account Sharing of magento2. Using this feature if someone login to admin panel from another device then already logged in user get expired session error and logged ...
1
vote
0answers
77 views

How can I add to user a products roles?

I created a user, and I can't add any role to him.. I want to add this roles to my user... my code is below... and when I save the user and the role, I don't see this green "V" on my role.. I just ...
1
vote
1answer
230 views

How do I create a user in the backend and allow them to only view?

They are allowed to view everything but not edit anything... Is this possible? Here's what the function looks like now, perhaps i did something wrong? public function preDispatch() { // ...
5
votes
1answer
1k 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 ...
1
vote
2answers
98 views

Unable to create user roles Class 'Mage_Notificationmanager_Helper_Data' not found

I have a weird problem when trying to create user roles. It gives me the following error: Fatal error: Class 'Mage_Notificationmanager_Helper_Data' not found in /public/app/Mage.php on line 547 I ...
2
votes
1answer
848 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 ...
0
votes
4answers
419 views

Magento 2: how to check if there is a role in site

I used the following code in magento 1 to check role is avilable or not. $role = Mage::getModel('api/roles')->load('my new role', 'role_name'); if(!$role->getId()) I want to know, How can I ...
0
votes
1answer
1k 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 ...