Examples: syUserInRole()


The following example verifies whether the current user logged into Microsoft Dynamics GP is assigned to the “sysadmin” role.

if syUserInRole('User ID' of globals, ROLE_SYSADMIN) then
	warning "User is System Administrator";
end if;

The following example verifies whether the current user logged into Microsoft Dynamics GP is assigned to the “dbowner” role for the current company.

if syUserInRole('User ID' of globals, ROLE_DBOWNER, 'Intercompany ID' of globals) then
	warning "User is DB Owner";
end if;


Documentation Feedback