Scenario 3

This scenario covers how to disable App Protection for users in a specific Active Directory group.

Following are the steps to disable App Protection for Win10Desktop users who are part of the Active Directory group xd.local\sales:

  1. Run Get-BrokerAccessPolicyRule to view the two broker access policies for Win10Desktop. For a delivery group Win10Desktop there are two broker access policies, Win10Desktop_AG and Win10Desktop_Direct. Make a note of the Desktop Group UID of the Win10Desktop.

  2. Create a Broker access policy rule for Win10Desktop to filter connections from users in the Active Directory group xd.local\sales.

    New-BrokerAccessPolicyRule -Name Win10Desktop_AG_Sales_Group -DesktopGroupUid <Uid_of_desktopGroup> -AllowedConnections ViaAG -AllowedProtocols HDX, RDP -AllowedUsers Filtered -AllowRestart $true -Enabled $true
    <!--NeedCopy-->
    

    Uid_of_desktopGroup is the DesktopGroupUID of the delivery group got by running the GetBrokerAccessPolicy Rule in step 1.

  3. Use the following command to disable App Protection policies for the Windows 10 Desktop users, part of the AD group xd.local\sales:

    Set-BrokerAccessPolicyRule Win10Desktop_AG_Sales_Group -AllowedUsers Filtered -IncludedUsers xd.local\sales -IncludedUserFilterEnabled $true -AppProtectionScreenCaptureRequired $false -AppProtectionKeyLoggingRequired $false
    <!--NeedCopy-->
    
  4. Use the following command to enable App Protection policies for the rest of the gateway connections except for the users from xd.local\sales:

    Set-BrokerAccessPolicyRule Win10Desktop_AG -AllowedUsers Anyauthenticated -ExcludedUserFilterEnabled $true -ExcludedUsers xd.local\sales -AppProtectionScreenCaptureRequired $true -AppProtectionKeyLoggingRequired $true
    <!--NeedCopy-->
    
  5. Verification

    Sign out of the Citrix Workspace app, if already open. Sign in to the Citrix Workspace app as a user in the xd.local\sales Active Directory group. Launch the protected resource and you see that App Protection is disabled.

    Sign out of the Citrix Workspace app and sign in again as a user who is not part of xd.local\sales. Launch the protected resource and you see that App Protection is enabled.

Scenario 3

In this article