You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
<p>The resources that you can access depend on your user type and the configured permission of the resource in the <code>webapi.xml</code> file. This table lists the resources that each user type can access:</p>
21
+
<p>The list of resources that you can access depends on your user type. All customers have the same permissions, and as a result the same resources accessible. Previous statement is true for guest users as well.
22
+
Each admin or integration user can have a unique set of permissions which is configured in the admin panel.
23
+
Permissions required to access particular resource are configured in the <code>webapi.xml</code> file. This table lists the resources that each user type can access:</p>
22
24
<tablestyle="width:100%">
23
25
<trbgcolor="lightgray">
24
26
<th>User type</th>
@@ -28,7 +30,7 @@ Before you can make web API calls, you must authenticate your identity and have
28
30
<td>
29
31
<p>Admin or Integration</p>
30
32
</td>
31
-
<td>e
33
+
<td>
32
34
<p>Resources for which admins or integrations are authorized. For example, if admins are authorized for the <code>Magento_Customer::group</code> resource, they can make a <code>GET /V1/customerGroups/:id</code> call.</p>
33
35
</td>
34
36
</tr>
@@ -56,7 +58,7 @@ acl.xml files across all Magento modules are consolidated to build an ACL tree w
56
58
Overall <ahref="http://www.magentocommerce.com/api/rest/permission_settings/permission_settings.html#PermissionSettings-Authorization">ACL concept</a> remains same as Magento 1, its just been extended to cover WebAPIs.
@@ -81,7 +83,7 @@ e.g.: Account management, customer configuration, and customer group resource pe
81
83
</config>
82
84
```
83
85
84
-
When a developer creates the Web API configuration file : webapi.xml, the permissions defined in acl.xml are referenced to create access rights for each API.
86
+
When a developer creates the Web API configuration file (webapi.xml), the permissions defined in acl.xml are referenced to create access rights for each API resource.
@@ -128,7 +130,7 @@ When a developer creates the Web API configuration file : webapi.xml, the permis
128
130
.....
129
131
...
130
132
```
131
-
e.g.:
133
+
e.g.,
132
134
In the above sample webapi.xml, for the customerGroups resource, only a user with a "Magento_Customer::group" can access the GET /V1/customerGroups/:id API. On the other hand, POST /V1/customers (customer creation) can be accessed anonymously (or by a guest) without a need for presenting the identity.
133
135
134
136
The user here can be an admin (or an Integration) defined in the backend with the customer group selected as one of the resource in the ACL tree.
0 commit comments