> Source: [sk180480](https://support.checkpoint.com/results/sk/sk180480)

# sk180480 - How to customize native RDP application file flags using API

| Property | Value |
|----------|-------|
| Solution ID | sk180480 |
| Date Created | 2023-01-05 |
| Last Modified | 2023-08-22 |
| Technical Level | General |

## Solution

Harmony Connect allows you to customize (create/edit) native RDP application file flags in the Application-Access according to your organizational requirements using API. When the customization is complete, it is applied to the downloaded file when end-users click the native RDP application.   

**Notes:**   

* If the flags are used in the default template, then the custom changes override the value of the flags in the default template.
* You can customize only the Microsoft RDP flags listed in [Supported RDP properties with Remote Desktop Services](https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/rdp-files).
* The following sensitive flags used in the default template. Modifying these files can impact the security of the application.
  * authentication level - The default value is 2.
  * enablecredsspsupport - The default value is 1.
  * redirectprinters - The default value is 1.

  When you modify these flags, specify these flags in the **sensitive_flags** array (as shown in the following graphic) so that it prompts the Administrator to provide an explicit approval.  

  **![](https://sc1.checkpoint.com/sc/SolutionsStatics/sk180480/Untitled202308171537341.jpg)**

**To customize the native RDP file flag using API:**

1. Log in to [Swagger](https://app.swaggerhub.com/apis-docs/Check-Point/Odo-API/2.0.1).
2. Scroll down to **Applications -- Advanced configurations** and customize the flags.

<br />

**Notes regarding 'redirectprinters' flag:** This flag should be updated on two places:  

1. API request to modify file flags under 'sensitive flags' - see [Swagger](https://app.swaggerhub.com/apis-docs/Check-Point/Odo-API/2.0.1#/apps%20-%20advanced%20configurations/CreateRdpNativeCustomFlags).  
2. API request to UPDATE APPLICATION with the below body - see [Swagger](https://app.swaggerhub.com/apis-docs/Check-Point/Odo-API/2.0.0#/apps/updateApplication)for full request:  
{  
"name": "\<current application name\>",  
"address": "rdp://\<current application address\>",  
"protocol": "rdpgw",  
"is_clipboard_allowed": \<true/false - according to current application's setting\>,  
"redirect_printers": \<true/false\> - default is true  
}  

* All body's attributes (name, address, protocol..) above must be explicitly defined in the body request otherwise they will be overridden by default values and may change the current behavior. please don't skip any.
* 'redirect_printers' value should be correlated with the value that sent over the first request to modify the 'sensitive flags' over the file itself.

<br />

### **Limitations**

You cannot customize the following flags:  

* Microsoft RDP flags:

<!-- -->

*
  * enablerdsaadauth
  * targetisaadjoined
  * kdcproxyname
  * full address
  * gatewayhostname
  * gatewaycredentialssource
  * gatewayprofileusagemethod
  * gatewayusagemethod
  * autoreconnection enabled
  * bandwidthautodetect
  * networkautodetect
  * compression
  * videoplaybackmode
  * drivestoredirect
  * redirectlocation
  * screen mode id
  * smart sizing
  * dynamic resolution

<!-- -->

* Backend flags:
  * redirectclipboard
  * redirectcomports
  * usbdevicestoredirect
  * gatewayusername
  * gatewaycertificatelogonauthority
  * gatewaybrokeringtype
  * session bpp
  * administrative session
  * prompt for credentials on client
  * disable themes
  * disable cursor setting
  * disable menu anims
  * disable wallpaper
  * allow font smoothing
  * remoteapplicationappid
  * shell working directory
  * use redirection server name
  * resourceprovider
  * forcehidpioptimizations
  * loadbalanceinfo
  * gatewayaccesstoken
  * authoring tool
  * connection type
  * disable full window drag
  * wvd endpoint pool
  * connect to console

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
