Klitos Kyriacou
Klitos Kyriacou

Reputation: 11621

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?

Upvotes: 1

Views: 3617

Answers (2)

Pushpak Gupta
Pushpak Gupta

Reputation: 81

It may be happening because of the restrictions in the employee record. if you have set the subsidiary or location in your employee record which is not the top most one then you will not be able to get all the subsidiary while searching. To resolve it, select the top most subsidiary in the employee record and do not select any location. Also, do not select any subsidiary in the role. Cheers

Upvotes: 1

Sam Azad
Sam Azad

Reputation: 139

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.

Upvotes: 1

Related Questions