Symptoms
Attempt to call SalesPersonAccountSet_API or SalesBranchAccountSet_API with xmlrcd autorization enabled fails with "No access rights granted to method" even though admin user is used.
Cause
The issue is caused by the bugs #PBA-78156 ("Error "No access rights granted to method" when execute API method SalesBranchAccountSet_API") and #PBA-77866 ("Error "No access rights granted to method" when execute API method SalesPersonAccountSet_API").
Resolution
Until the bug is fixed a workaround below can be used:
- make a backup of existing /usr/local/bm/conf/BM.methods.list
edit the BM.methods.list
add
BM SalesPerson SalesPersonAccountSet_API ACCOUNTS_CREATE_MODIFY
(after BM SalesPerson SalesPersonGetSalesPersonList ORDERS_CREATE)
and
BM SalesBranch SalesBranchAccountSet_API ACCOUNTS_CREATE_MODIFY
(after BM SalesBranch SalesBranchGetSalesBranchList ORDERS_CREATE)
run
/usr/local/bm/tools_py/configure.py
(OA 7.0) or/usr/local/bm/tools/configure.pl
(OA 6.0.x)restart BA
service pba restart