The default Microsoft Dynamics GP security reports pull all the windows and such from the dictionary files for each product. This means that if you were to run a security report for the Extender product, you would see the security for the setup windows that you use to create new Windows, Forms, Views, etc. You wouldn’t see the security you have for the different Windows, Forms, etc that you have created in Extender. There isn’t a report today in Dynamics GP to be able to view this information.
Because of this, we have created a SQL Script that will display this information for you. You will just need to replace TWO in the second line of the script to be the Dynamics GP company database that you want to run the script against to find the security setup. The results will show you the security that is setup for the Extender resources you have created in that company.
_________________________________________________________
DECLARE @dbname nvarchar(150)
set @dbname = ‘TWO’
EXEC( ‘USE ‘ + @dbname)
EXEC (‘select U.USERID, U.USERNAME, C.CMPNYNAM, C.INTERID,
CASE E.Extender_Type WHEN 1 THEN ”Window” WHEN 2 THEN ”Form” WHEN 5 THEN ”Inquiry” WHEN 10 THEN ”Import” WHEN 22 THEN ”Menu” ELSE ” END as [Extender_Type],
E.Extender_ID, CASE E.Extender_Type WHEN 1 THEN W.Extender_Window_Name WHEN 2 THEN F.Extender_Form_Name WHEN 5 THEN rtrim(IQ.Extender_Window_ID) + ”” – ”” + rtrim(IQ.Extender_Window_Name) WHEN 10 THEN I.Extender_Import_Desc WHEN 22 THEN M.Extender_Menu_Name ELSE ” END as Resource_Name,
R.SECURITYROLEID, R.SECURITYROLENAME, R.SECURITYROLEDESC,
T.SECURITYTASKID, T.SECURITYTASKNAME, T.SECURITYTASKDESC
from DYNAMICS..SY10700 O
left outer join DYNAMICS..EXT00001 E on O.SECURITYID = E.Extender_Resource_Number
left outer join DYNAMICS..SY10600 TR on O.SECURITYTASKID = TR.SECURITYTASKID
left outer join DYNAMICS..SY09000 T on O.SECURITYTASKID = T.SECURITYTASKID
left outer join DYNAMICS..SY09100 R on TR.SECURITYROLEID = R.SECURITYROLEID
left outer join DYNAMICS..SY10500 UR on TR.SECURITYROLEID = UR.SECURITYROLEID
left outer join DYNAMICS..SY01400 U on UR.USERID = U.USERID
left outer join DYNAMICS..SY01500 C on E.CMPANYID = C.CMPANYID
left outer join EXT20100 W on E.Extender_ID = W.Extender_Window_ID
left outer join EXT20200 F on E.Extender_ID = F.Extender_Form_ID
left outer join EXT20700 I on E.Extender_ID = I.Extender_Import_ID
left outer join EXT40800 M on E.Extender_ID = M.Extender_Menu_ID
left outer join EXT20120 IQ on E.Extender_ID = cast(IQ.Extender_Enquiry_ID as varchar(32))
where O.DICTID = 3107 and C.INTERID = ”’ + @dbname + ””)
_________________________________________________________
Note: This script is designed to pull in the Extender Resource security for a standard setup. While we try to make it as accurate as possible, we always recommend you check the results with your setup as we don’t guarantee its results.