Questions tagged [acl]

Questions about using the access control list (ACL) to manage admin user roles and permissions

Filter by
Sorted by
Tagged with
0 votes
1 answer
72 views

Restrict customer edit access for different admins in magento 2.4.6?

I have magento2 with different admins. I don't want my admins to edit any customer details. They should only view. My different admin can place an order by clicking on "Login as Customer" ...
Mehreen's user avatar
  • 11
0 votes
2 answers
81 views

how do i overwrite acl.xml for a module in magento 2

I'm using a module that gives errors for its acl.xml file. The title for the resources is not set. Can I fix this with a custom module, and overwrite with the correct values? How would I do this? I ...
Jonas de Herdt's user avatar
0 votes
1 answer
54 views

Menu not showing for custom role in custom module

This is a duplicate question of Magento 2.x - Menu not showing for custom role in custom module but I can't seem to figure out how... I have setup ACL rules for this but it is not showing Menu of ...
jsnewbie21's user avatar
3 votes
3 answers
2k views

Extension Integration Access Token for Rest API is not working in local

I am using Magento 2.4.4 with xampp in my local.Have created extension integration token and added acl for newly created custom rest api resource. when i was provide access Token in my rest api as ...
Mohamed Abbas's user avatar
0 votes
1 answer
100 views

Could not create an acl object: The XML in file is invalid - Magento 2

I'm getting this error message when trying to access the admin: 1 exception(s): Exception #0 (LogicException): Could not create an acl object: The XML in file "C:/xampp/htdocs/magento2-dshop/app/...
Abi's user avatar
  • 33
0 votes
1 answer
253 views

Magento 2.4.5 - ACL for Menu and Configuration!

How to use ACL for Menus and Configuration in Magento 2.4.5 ?
Wakar Ahamad's user avatar
0 votes
1 answer
164 views

Custom acl resource for api endpoint

I have a route defined in one of my modules like this <route url="/V1/some/path/:type" method="GET"> <service class="SomeClassOrInterfaceHere" method="...
Marius's user avatar
  • 198k
1 vote
1 answer
59 views

Update form give access for specific users only - M2

How to restrict update form for few users using ACL ?
Jimit Bhavsar's user avatar
0 votes
1 answer
230 views

Magento2 : Layout block what is the difference between acl="" and aclResource"" attribute

I've been trying to figure out the difference between acl and aclResource both attributes available for <block> directive. I know that aclResource is useful to render the block based on specific ...
Mohamed23gharbi's user avatar
1 vote
0 answers
18 views

Is there any extension to manage ACL based on the multi-source-inventory?

I have some requirements related to managing orders from the admin. but different admin has separate inventory source. Like source, A assigned to admin 1 and source B assigned to admin 2 then admin 1 ...
Sagar Dobariya's user avatar
1 vote
1 answer
381 views

Append ACL resource under parent custom ACL resource from another module - "Could not create an acl object: Resource id already exists in the ACL"

Using two modules: Vendor_ModuleA and Vendor_ModuleB, where Vendor_ModuleA will be a backend main menu/ACL module. Other modules (in this example Vendor_ModuleB) should use the ACL menu of ...
CvRChameleon's user avatar
0 votes
2 answers
27 views

Reusing vs Redefining System Config Tabs, Menus and ACL Resources

When we want to create a system config we add section items in the system.xml file. In these sections we specify a tab. That tab needs to also be defined. There is a possibility that a tab is already ...
pro100tom's user avatar
  • 145
0 votes
1 answer
298 views

Magento 2 : Acl admin controller

I can see below code in file use Magento\Backend\App\Action; /** * Abstract assignment controller */ abstract class Assignment extends Action { /** * Authorization level of a basic admin ...
devhs's user avatar
  • 497
0 votes
0 answers
51 views

Magento admin dashboard showing after login

My admin dashboard after logging in is showing the following error: does any one know the reason behind it or how can we solve it? I have recently installed this module through composer I have ...
Anonymous Record's user avatar
1 vote
1 answer
114 views

How to disable price block from admin grid if this blocked in ACL

In this question https://magento.stackexchange.com/a/324446/92235, there is an excellent solution related to hiding the price from a specific user group. But this one does not hide the price from the ...
Alice's user avatar
  • 148
2 votes
1 answer
346 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.
Alice's user avatar
  • 148
1 vote
2 answers
2k views

How does Magento 2 ACL works

I know how to setup ACL for my module. I also know this method is responsible for ACL: /** * @return bool */ protected function _isAllowed() { return $this->_authorization->isAllowed(...
Adarsh Khatri's user avatar
0 votes
2 answers
581 views

How to translate b2b roles and permissions?

I have a what should be a simple task of translating the roles and permissions control page in b2b but I just cant make it work I know that the texts are from this file vendor/magento/module-company/...
Omar Tuffaha's user avatar
1 vote
0 answers
55 views

Create new role with specific ACL rights

I want to create a new admin role with some rights. So I use the following code : $role = $this->roleFactory->create(); $role->setName('MyNewRole') ->setPid(0) -&...
Kozame's user avatar
  • 964
2 votes
2 answers
2k views

How to create ACL for customer user in magento 2?

I have a customer with custom attribute as merchant. I want to let that customer to see only my custom module features. How can I restrict a user to some custom features ? Edit: Actually I have ...
Ajwad Syed's user avatar
  • 1,591
0 votes
1 answer
764 views

Magento 1 ACL - access denied even though user has ALL rights (not admin rights)

I added a new user which has ALL rights. However, he can't open the site in admin under Catalog -> Manage Attachments. URL: /fileuploader/adminhtml_fileuploader/index/key/ I already logged the ...
Black's user avatar
  • 3,280
1 vote
1 answer
799 views

Magento 2 ACL is not working on custom controller

I have tried to use ACL on custom admin controller but it is not working. My etc/acl.xml file is this: <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
Shoaib Munir's user avatar
  • 9,394
3 votes
0 answers
52 views

Magento 2.3 admin is redirecting to this URl domain/admin/admin/denid/key/**** after admin login

I anonymously added some ACL permissions in Magento 2 and saved. I know that I have configured wrongly in the process of knowing, how it works since then I am unable to access my Magento 2 admin, I am ...
Raju Potharaju's user avatar
0 votes
1 answer
49 views

Assigning user role in custom module redirect to no route

In my custom module i have created ACl <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl....
sudo55's user avatar
  • 994
3 votes
0 answers
185 views

Hide admin sub menus menus via acl

I am looking to disable menus for certain users present within Stores->Configuration->sales->Checkout Totals Sort Order . I have added their values in acl.xml But it does not work. How to disable or ...
insoftservice's user avatar
0 votes
1 answer
106 views

Magento 2.1 adminhtml Action 'Edit' give 404 while Index works

Update: Here is what the Developer Toolbar gives me on the 404 page: Mode: Developer Controler Module: Magento_Backend Controler Class: Magento\Backend\Controller\Adminhtml\Noroute\Index ...
iizno's user avatar
  • 134
0 votes
1 answer
570 views

Magento2: In which table Resource Access dropdown (tree-resources-container) is saved?

public function getRules() { $resoId = 'Mageants_AdvancedPermissions::catalog_attributes'; $permission = 'allow'; $rid = $this->_adminSession->getUser()->getRole()->getData('...
milan's user avatar
  • 51
0 votes
2 answers
65 views

Error on running cron in Magento 2

If i run the cron command php bin/magento cron:run im receiving the below error. [Magento\Framework\Exception\LocalizedException]...
Thowzif's user avatar
  • 82
2 votes
0 answers
176 views

magento2 custom product attribute acl permission how to? [closed]

protected function _isAllowed() { return $this->_authorization->isAllowed('Mageants_AdvancedPermissions::catalog_attributes_attributes'); }
milan's user avatar
  • 21
-1 votes
1 answer
2k views

Magento 2: Override ACL using custom module

I have updated the parent of a menu item which is coming from a third party extension. I have updated the menu item by my custom module's menu.xml file. For instance, the menu was coming under ...
Mohit Kumar Arora's user avatar
1 vote
0 answers
399 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 ...
Vivek Jadaun's user avatar
0 votes
1 answer
85 views

System role "Magento_Braintree::get_client_token" not found - Magento 2.2.6

Below URL throws the permission issue https://host/admin/braintree/payment/getClientToken/key/c21228d08eaede792c0256b56e18c861d90c4598adae24e63f6fcc8ea8325e0d/?isAjax=true Sorry, you need ...
Bilal Usean's user avatar
  • 9,947
-2 votes
1 answer
1k views

Magento 2 How can I create two different sections under the same tab item in admin menu?

I have created two different modules, now I want to create one tab in admin system configuration and show both modules configurations in different tabs. I have two different modules within same "...
Utsav Gupta's user avatar
  • 1,243
0 votes
1 answer
224 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 ...
Mahmood Rehman's user avatar
1 vote
1 answer
794 views

Magento 2.2.3- ACL Permissions not Working for Customer module

I have created a user and provide a new created role customer which have access to customer module only . When we logged in with that particular user , we are able to see the customer list but when ...
Ranjeet Singh's user avatar
3 votes
3 answers
3k views

Custom REST API endpoint - Consumer is not authorized to access %resources - Magento_Indexer::Indexer

I'm trying to expose the getLatestUpdated() method of the Indexer class through the REST API. The endpoint is getting an auth token and all that - I can use protected endpoints no problem. What ...
Todd's user avatar
  • 145
2 votes
1 answer
606 views

ACL for custom config group - section disppeared?

I'v tried to add a new section to Store -> Config -> Catalog Section -> Catalog with custom ACL settings. I changed (default) adminrole permissions from "All" to "Custom" and left only the ...
sv3n's user avatar
  • 11.6k
0 votes
0 answers
359 views

Get store id of the current user logged in admin

How can i get store id of the current user logged in admin in magento? I want to restrict custom module data by the type of user logged in admin area. I followed below link http://www.pixelpaul.net/...
Arjun's user avatar
  • 3,566
2 votes
0 answers
173 views

Api acl check permission not working for guest user

Hi I have added api acl for guest user vy adding tag <privileges> <admin> <create>1</create> <retrieve>1</retrieve> <update>1</...
Denish Vachhani's user avatar
4 votes
1 answer
62 views

issue while adding recipie

I have created a user . I give a user role and give resources to add recipies . it is working for admin user . but it is not working for non admins . screenshots will help you understand my question. ...
Flutterer's user avatar
  • 728
3 votes
2 answers
682 views

Cusotm module edit action redirects it to the dashborard

I created Grid using UI Components and provide Edit action using < actionsColumn > in vendormodulename_entity_list.xml <actionsColumn name="actions" class="Vendor\Modulename\Ui\Component\...
Kapil Dev Singh's user avatar
2 votes
1 answer
44 views

ACL doesn't work

I tried to add new checkbox into System -> Permissions -> Roles. I added this xml at the adminxml.xml, but it is doesn't work. Where is my fault ? I want to block Catalog -> Product/...
Павел Кушнеревич's user avatar
2 votes
2 answers
341 views

Magento 2.1.9 - Custom Module tab not showing

I have followed different posts in order to get the solution and the tab working, but It doesn't show up. I have followed this ones: Custom admin configuration tab not showing Magento CE 2.1 ...
Raül's user avatar
  • 790
4 votes
1 answer
1k views

Could not create an acl object: Invalid XML

I'm a newbie learning and got this message when installing a theme and trying to access to admin, would someone mind giving me a hand? I got this error: 1 exception(s): Exception #0 (LogicException)...
user68226's user avatar
3 votes
1 answer
1k views

Give custom module's access to all in Magento 1.9

I have created a custom module for backend in Magento 1.9. This module is applicable to all users and roles. <menu> <videos module="videos"> <title>Video Tutorials</...
Nagaraj Juro's user avatar
1 vote
0 answers
361 views

How to assign ACL to UI component Form in magento 2?

I need to assign acl to Ui Component Form? Anyone know about it?
Ramanathan's user avatar
2 votes
1 answer
333 views

How to put ACL on customer grid's export to CSV, based on roles?

Trying to put ACL on customer Grid's export to CSV functionality based on user role. Add following fode in my module's adminhtml.xml file acl section <config> <acl> <...
Nived's user avatar
  • 479
1 vote
0 answers
219 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 ...
teddelicious's user avatar
1 vote
1 answer
1k views

Magento 2 ACL rule move from one db to another

I have two environment of my website using Magento 2.2.1 One is dev and another is staging. I have created ACL Roles and assign them to users. Now i want to copy these ACL Roles to staging ...
Rajbir Singh's user avatar
1 vote
1 answer
883 views

Could not create an acl object: Role '9' - how to resolve this?

Something like this happend when I'm trying to login to backend: {"0":"Could not create an acl object: Role '9' not found","1":"#0 /var/www/html/MAGENTO_HELPA/generated/code/Magento/Framework/...
Piotr Budzowski's user avatar