Log in
Model

WebapiRoleLocator

Magento\Webapi\Model\WebapiRoleLocator

What it does

This class retrieves the ACL (Access Control List) role ID for the current Web API user.

Developers use this to determine what permissions and resources a user has access to when making API requests, enabling proper authorization checks for REST and SOAP web services in Magento 2.

Public Methods

  • getAclRoleId()