Dylan Mann
09/23/2022, 7:51 PMDylan Mann
09/23/2022, 7:52 PMMatt Bernstein
09/23/2022, 8:34 PMDylan Mann
09/23/2022, 8:41 PMMatt Bernstein
09/23/2022, 8:49 PMvar userObj = runtime.getCurrentUser();
var userPermission = userObj.getPermission({
name = 'ADMI_ACCOUNTING'
});
There probably is a way. There are a few tables I saw. It would be a matter of linking them correctly.
PermissionType
rolePermissions
employeeRolesDylan Mann
09/23/2022, 8:51 PMwhat do you mean by changing the suitescriptIn the environment I'd like to retrieve this information, I don't have the ability to change the suitescript being executed, but I do have permission to run suiteql queries. That's why I'd like to be able to run this entirely in suiteql.
Dylan Mann
09/23/2022, 9:13 PMtokeninfo
endpoint to get the current role, then work backwards to get the permissions.