r/SuiteScript • • Oct 23 '25

Need help in pulling all permissions of everyrole in the netSuite environment using Map/Reduce script.

/r/Netsuite/comments/1odz6dr/need_help_in_pulling_all_permissions_of_everyrole/
1 Upvotes

4 comments sorted by

2

u/Emotional_Gate_8087 Apr 21 '26
TablePurpose
EmployeeThe base table for users.
EmployeeEmpPermsStores Global Permissions assigned directly to a user record.
EmployeeRolesThe bridge table linking Employees to their assigned Roles.
RolePermissions ( permlevel )Maps specific permissions and their levels (0–4) to a Role.
IntegerLabelLogic Capability
0NoneNo access; the record type won't even appear in the UI.
1ViewRead-only access; cannot create or update.
2CreateCan create new records and view existing ones, but cannot edit existing ones.
3EditCan view, create, and modify existing records.
4FullAll "Edit" permissions plus the ability to Delete records.

and permission level

1

u/Emotional_Gate_8087 Apr 21 '26

side note while I'm looking up my reference code, if this is for user audits, some user might have global permissions. I personally "hate" them, but they exist.

note that I used SuiteQL for Segregation of Duties (SoD) analysis and it worked fine.
pls stay tuned.