Search code examples
netsuitesuitetalk

Insufficient permission to view NetSuite Subsidiaries


I am using SuiteTalk web services and trying to use SubsidiarySearch to retrieve all Subsidiary records:

    SubsidiarySearchBasic srch = new SubsidiarySearchBasic();
    srch.setIsInactive(new SearchBooleanField(false));
    SearchResult res = stub.search(srch);

I login using a customized role based on NetSuite's standard "System Administrator" role, with various extra permissions added. In particular, this role has "Subsidiaries" permissions set to "Full". However, the above code returns the following status, using this Java code:

Type=ERROR
Code=INSUFFICIENT_PERMISSION
Detail=Permission Violation: The subsidiary restrictions on your role prevent you from seeing this record.

The above code succeeds when I use the standard "Administrator" role (internal id "3") but I would like to use a customized role. What permissions do I need for a successful result?


Solution

  • Make sure all the subsidiaries are exposed or the top most subsidiary is selected for this role, and also make sure the employee, department and location restrictions are set correctly.