Block attachments from certain IP Range

Block attachments from certain IP Range

Requirement:
In few organisations, certain IP Ranges are refrained from creating requests with attachments.

Steps to configure:
  1. Goto Admin > Developer Space > Request Custom Functions > Global function > New > Paste the content from the attachment GF_4 - Configuration.txt and save it with a name.
  2. Update the URL and integration key in the script. 
    1. You can get the integration key under Admin > Integrations > Integration Key > New
    2. Please use an integration key with admin privilege, as there wont be any role related permission issues. 

    3. Update the integration key in the global function.
    4. https://help.servicedeskplus.com/api/rest-api.html$key

  3. Go to Admin > Developer Space > Request Custom Functions > Custom Actions > Paste the content from the blockattachmentsFromIP_range.txt and save it with a name.
  4. Modify the global function name and the IP Address list in the script. 

  5. Configure custom trigger as below:



                  New to ADSelfService Plus?

                    • Related Articles

                    • Block attachments from specific IP Address

                      Requirement: In few organisations, certain IP Address are refrained from creating requests with attachments. Steps to configure: Goto Admin > Developer Space > Request Custom Functions > Global function > New > Paste the content from the ...
                    • Add attachments using API

                      Attachment cannot be added when a request is created, it can be only added after request creation URL : http://localhost:8080/api/v3/attachments?TECHNICIAN_KEY=XXXXXXXXX Body
                    • Query to find out the users added on a specific date range

                      This should be handy during Audit. Execute the query nder Reports->New Query Report Users added based on a date range. Here the range is from and to today. select * from aaauser where createdtime >= <from_today> AND CREATEDTIME <= <to_today> If ...
                    • How to start ServiceDesk Plus on a single IP address/IP Binding

                      For customers running version 9.3 and below. 1. Goto Drive:\ManageEngine\ServiceDesk\server\default\conf\TrayIconInfo.xml and add "ipToBind" parameter to the following line:  <SDP-PROPERTIES RequestScheme="http" WebPort="8080"/>  Now the line would ...
                    • Query to show to Assets with their IP and MAC Address (MSSQL & PGSQL)

                      Tested in Build PGSQL (14300) or MSSQL (14306) SELECT productType.COMPONENTTYPENAME AS "Product Type", resource.RESOURCENAME AS "Asset Name", networkinfo.IPADDRESS "IP Address", networkinfo.macaddress "MAC Address", product.COMPONENTNAME AS ...