Questions tagged [role]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
19 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!
0
votes
0answers
43 views

How to get resource role on Magento2?

I create a role, and I want to update resource of it (when I need to do it). So I try by creating an UpgradeData on Setup folder, and I use this code if(version_compare($context->getVersion(),'0....
0
votes
1answer
26 views

How to upgrade resource to admin user role

I create an admin user role from setup using this code, $role=$this->_roleFactory->create(); $role->setName('test') ->setPid(0) ->setRoleType(RoleGroup::ROLE_TYPE) -&...
0
votes
1answer
59 views

Adding new admin role programmatically don't work (Magento 2.3.1)

I try to add a new role programmatically using this code : <?php namespace ModuleNameSpace\YourModuleName\Setup; use Magento\Framework\Setup\InstallDataInterface; use Magento\...
1
vote
0answers
31 views

How to save another data for Authorization Role in Magento 2

Hi Everyone i need help with this case. How can i save with a plugin with this additional data "Extra Data" ? Reference: How can i add this "extra-data" with the rest of the info of AUthorization ...
1
vote
1answer
310 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\...
1
vote
0answers
89 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
75 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( ...
1
vote
1answer
2k views

Get product image by its “Role” in the gallery

On the products grid in the category view I need to display additional image for some products. When I have a gallery of product images: $images = $product->getMediaGalleryImages(); foreach ($...
0
votes
1answer
55 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
1k views

How to add image roles programmatically in products Magento 2?

I am creating products programmatically. I am using below code to add product image.. Images are adding perfectly fine.. but image roles are not showing. Can anyone please help me to add image roles ...
1
vote
1answer
502 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/...
2
votes
1answer
924 views

Get Product Image with specific Role in Magento 2

Does anyone know how to get the image with a specific role from a product. For example, I've created a new role called 'global' and assigned one of the product images to that role. How can I get that ...
0
votes
4answers
479 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 ...
2
votes
2answers
402 views

Magento 2.1.3 Role Resource Tree Not Showing

I have a clean install of Magento 2.1.3 with sample data. No themes or plugins have been added. When I create a new role, the role resource tree does not display, and there is no other error or ...
5
votes
2answers
4k views

Magento 2 add extra image Type/Role

How can we add extra field in image role in product page admin panel. I want to add new field same as thumbnail in Image role popup. http://awesomescreenshot.com/0e467tlo04
1
vote
0answers
180 views

Magento 1.9X Role Resource Tree customization?

I want to customize Role Resources module tree that is showing when we add/edit a role. I found some files that are responsible for this : For Front End(admin) : app/design/adminhtml/default/default/...
0
votes
1answer
87 views

How to create a user with access to given web shop in Magento 2 multi-store

How to make a user in Magento 2 multi-store configuration with giving access him to only 1 sub web shop?
2
votes
3answers
2k views

Access Denied for Custom Module for specific role

I've created one role and provide rights for my custom module using System->Permissions->Role. When any user from that role logs into system, gets access denied for my custom module. My config.xml ...
0
votes
2answers
3k views

How to list all admin of a specific role

How can I retrieve the list of all admin that has the same role? For example, I create a new role called "Seller" and assign some admin users to that role. How to list all admin users with the role "...
1
vote
0answers
36 views

Create role programmaticaly

I need to create the role for shipping programmaticaly. My role: If if insert into shopping cart code s0001-->quantity > 200 --> discount -10% this is my code: $rule = Mage::getModel('salesrule/...
4
votes
3answers
966 views

How can I get all resource list programmatically?

I want to fetch all resource id(s) list programmatically in foreach loop. In System > Permission > Roles > Administrator . In Role Resources Tab and select custom option from dropdown It will display ...
3
votes
1answer
2k 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 ...
1
vote
1answer
1k views

Is there a way to create a user who can only add but not edit/remove product in Magento?

I wonder whether there is a way to further restrict an magento website editor's role to the followings: 1) after login to magento, the editor is only able to add product to a certain category 2) the ...
0
votes
1answer
282 views

Finding what exactly privilege is absent for “Access denied”?

I'm using a custom options extension that, on the Catalog > Manage Products page, enables me to select a few products and provide a source product ID and it will copy the custom options from the ...
6
votes
2answers
1k views

How can I programmatically create an api role (SOAP)

I would like to programmatically create an api role with the installation of a module. I have a data install script located at namespace/module/data/namespace_module_setup/data-install-1.0.0.php ...
5
votes
0answers
537 views

Magento 1.x : Accessing Magento Rest Api as Admin

I am trying to access magento rest api with following script, but is uses default guest role to access, so I cannot access orders and other stuffs. How can I access Magento Rest api as admin. <?...
3
votes
1answer
263 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 ...
5
votes
2answers
5k views

Admin roles role_type table column

In the admin_role table there is a column role_type that can have 2 values: 'G' - Mage_Admin_Model_Acl::ROLE_TYPE_GROUP 'U' - Mage_Admin_Model_Acl::ROLE_TYPE_USER By their names I jump do the ...
1
vote
2answers
141 views

Assigning a role from edit a specific category-tree of catalog [closed]

I need to assign a role to edit a specific separate category in the catalog. I was hoping that "Roles Resources" have the opportunity to select from category-tree of the catalog. But didn't find such ...
0
votes
1answer
61 views

role acl issues when applying to user

I have inventory module which is a grid and is showing in admin panel this module is under catalog tab I created role inventory and this role should see just the module in etc folder config.xml I ...
4
votes
1answer
173 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 ...
1
vote
1answer
977 views

User Role doesn't work as intended

Creating a user role to access only the VIEW action under sales order, does not deny the user from editing the billing and shipping address in the order information page. Is there a way to fix it?
0
votes
1answer
3k views

How to allow third party to access Magento API?

How can I allow third party to access Magento API? Can anyone provide brief description on this. I'm using Magento CE 1.7. Any suggestion will be appreciated. Thanks in advanced.
1
vote
2answers
2k views

How to assign role to admin user Programmatically?

I need to assign a user role to admin user programmatically. How can I? I tried some methods like, try { $user->setRoleIds(array(<role_id>)) ->setRoleUserId($user->getUserId()) ...
1
vote
1answer
365 views

Is it possible to manage only a range of users by roles?

I want to give access to 2 new roles. This new role will manage the customers, but one will manage the customers of the 'group X' and the other the 'group Y'. Is there a solution to filter this? I ...
0
votes
1answer
6k views

How to give 'custom menu' permissions to a role?

Some weeks ago I created a new custom menu in backend. Now I want to select this new menu in order to give permissions (or not) to the roles that I have on my website. The problem is that this new ...
1
vote
1answer
180 views

Override user roles magento admin

I just want override the user roles in the magento admin panel so that each store can have separate admin say Store Admin, Can anybody suggest a way to filter the stores for multiple Store Admins?
4
votes
1answer
4k views

Can't Save Role Resource for Custom Module

I've created a custom module and my adminhtml.xml is as follows... <config> <menu> <web translate="title" module="adminhtml"> <title>Custom</title> &...
10
votes
1answer
329 views

Role Landing Pages

We have a number of different users using the Magento back end for different uses. For example, we have people who essentially just ship packages, and all we really want them to see is the shipment ...