You may need to find out whether a specific user has access to a resource in Microsoft Dynamics GP. For example, security access is checked for each metric that can appear on the user’s home page. If the user doesn’t have security access to the forms that access the data used for the metric, the metric should not be available to display.
Microsoft Dynamics GP provides the Security() function that you can use to check the security access for a form, report, or table. The following example shows how this function is used to find whether the current user has access to the IG_Contact_History form.
local integer dict_ID = 3333; local integer result; result = Security(dict_ID, FORMTYPE, resourceid(form IG_Contact_History));