Custom "File Access Denied" page when opening a GraphWorX display with insufficient user rights

Custom "File Access Denied" page when opening a GraphWorX display with insufficient user rights

Info
This article explains how to customize the File Access Denied message for Desktop and Web clients in GraphWorX. This message is displayed when access rights to a display file are restricted for the current user.

In GENESIS, there are multiple ways to customize user rights. One of them is limiting access to certain GraphWorX displays by specifying them in the Files tab of the Security settings. In the example screenshot below, access to the file Display2.gdfx is denied for all members of the guests group:


We then display this screen in a GraphWorX Viewer control after the user clicks a menu bar button. Because the button itself is not restricted by access rights, every user can click it, and a message about insufficient permissions can be shown in the control instead of the display. Since the behavior differs between Desktop GraphWorX clients and Web (HTML5) clients, both versions are explained below.

1. Desktop client

In the case of the desktop GraphWorX client, a predefined display file is shown whenever a restricted file is accessed:



In GENESIS V11 the file path is different: C:\ProgramData\ICONICS\11\PubDisplay\GwxFileAccessDenied.gdfx

2. Web (HTML5) client

For users accessing the visualization via web browsers, the Access Denied display is different:


This one can also be modified - the default file path is: C:\Program Files\ICONICS\GENESIS64\Services\AnyGlass\wwwroot\projects\file-access-denied.gdfx

Notes
Administrator rights may be required to modify files in the wwwroot/projects folder. If you have trouble customizing your file-access-denied.gdfx display, first copy it to another directory, make your changes there, and then paste the customized version back into wwwroot/projects as an Administrator.

Your custom version will be displayed for all web clients: