Skip to content

No ACL set for integrations #9684

@wigman

Description

@wigman

It's currently not possible to set access to Integrations (API access) for Admin roles. They are only available when Role Resources is set to all

Preconditions

  1. install any version of Magento 2 (up till 2.1.6)

Steps to reproduce

  1. create admin role
  2. set custom role resources
  3. select all resources
  4. add a user to the role
  5. login as this user
  6. search for 'System > Extentions > Integrations'
  7. cry, because you can't find it

Expected result

  1. ideally you'd be able to grant users access without giving them full rights. For 3rd party integrators for example.

Actual result

See reproduction steps above

Solution

Add /vendor/magento/module-integration/etc/acl.xml with following content:

<?xml version="1.0"?>
<!--
/**
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
    <acl>
        <resources>
            <resource id="Magento_Backend::admin">
                <resource id="Magento_Backend::system">
                    <resource id="Magento_Integration::extensions" title="System Extensions" translate="title" sortOrder="30">
                        <resource id="Magento_Integration::integrations" title="System Integrations" translate="title" sortOrder="40" />
                    </resource>
                </resource>
            </resource>
        </resources>
    </acl>
</config>

Metadata

Metadata

Assignees

Labels

Component: CustomerFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions