Rewrite StoreFront Logo Based On Group MemberShip


Some service providers are hosting environments for different customers. So they all just stick to the default StoreFront logo (top left).

After some branding and customisation the StoreFront page can look like this:

Now I want that logo to be different for the member of ad group: “Microsoft Employees”. My user account is member of that group.

Upload the correct logo (keep in mind the transparency and dimensions) into the custom folder of the receiver for web folder on the StoreFront servers. Don’t forget to propagate changes.

Now create the following rewrite action: (Change the filenames, use F12 on the browser to grep currently used filename of the logo)

add rewrite action RA_STOREFRONT_LOGO_MICROSOFT replace_all "HTTP.RES.BODY(HTTP.RES.CONTENT_LENGTH)" "\"<FILENAME_NEW_LOGO>\"" -search "text(\"<FILE_NAME_CURRENT_LOGO>\")"

And create the following rewrite policy:  (Ofcourse, change the groupname to whatever suit your needs)

add rewrite policy RP_STOREFRONT_LOGO_MICROSOFT "AAA.USER.IS_MEMBER_OF(\"Microsoft Employees\")" RA_STOREFRONT_LOGO_MICROSOFT

Now when I re-logon the other logo is displayed:

Troubleshooting:

  • Always use the developer mode (F12)of the browser to get correct filenames and to see if the rewrite worked;
  • Make sure the Citrix ADC (NetScaler) knows the AD group membership of the user.

Article created on the latest ADC firmware released 8 June 2021.