• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Archives
  • Findings
  • Meetups
  • Videos
  • Events
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp Dashboards
    • ControlUp for Desktops
    • ControlUp for VDI
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp Workflows
  • Topics
    • Logos & Wallpaper
    • ControlUp.com
  • Join

Automating Quarterly VDI “Unique Users” Reports with ControlUp Workflows and Custom SQL Queries

Posted on October 9, 2026

A common request in VDI environments is automating the generation and distribution of quarterly reports that include metrics such as “Unique Users” along with detailed user session data. One such use case involves producing an Excel (CSV/XLSX) report that captures the list of users who logged into the VDI environment during the previous quarter and sending it automatically to management via email.

ControlUp does not offer a direct, out-of-the-box report that automates this exact task with both unique user counts and full session data in one export, nor does it natively support emailing such reports on a quarterly schedule through the product UI alone. However, this requirement can be addressed using ControlUp’s extensibility and automation features, particularly by leveraging ControlUp Workflows and custom SQL queries within the ControlUp Insights platform.

One practical implementation involves creating a custom SQL query that extracts user session activity data—such as usernames and counts of sessions per user over the desired interval. This query can be run on a schedule aligned to quarters. The results are then exported into Excel format using the Microsoft Excel integration available within ControlUp Workflows. An automated workflow can then use the Microsoft Outlook integration to send the generated report via email to predefined recipients at the beginning of each quarter, with the data covering the previous quarter.

A useful example comes from a community user who adapted the “Device Inventory Report to Email” workflow template for their use case. They included a custom SQL query to capture user session activity over the last set number of days, generating a report of users and their session counts. This workflow creates a document (Excel file) and attaches it in an email sent automatically to recipients whose addresses are stored in a global variable, enabling easy customization of distribution lists. This approach requires the integrations of ControlUp for VDI, Microsoft Excel, and Microsoft Outlook to function smoothly.

While this method does not currently exist as a pre-built ControlUp dashboard or report that directly sends emails on a quarterly schedule, using the powerful combination of custom SQL queries, Workflows automation, and Office integration provides a viable and robust solution. For organizations that cannot utilize AI assistance due to policy restrictions, this approach offers a fully scriptable, controlled, and customizable method to achieve the quarterly “Unique Users” report and distribution goal without manual intervention.

ControlUp customers interested in implementing such solutions can explore the ControlUp Workflows feature, the SQL Query Editor in ControlUp Insights, and the email and Excel integrations detailed in the ControlUp documentation and the ControlUp Academy tutorials at https://academy.controlup.com. Additionally, the official workflow templates available in the ControlUp Console or downloadable from the ControlUp community can form a good starting point for customization.

Read the entire ‘Automating Quarterly VDI “Unique Users” Reports with ControlUp Workflows and Custom SQL Queries’ thread below:

Q / REQ: Create an automated quarterly report which includes “Unique Users” and the “Users” table as CSV/XLSX

Hi gang,
a customer asked us whether it’s possible in ControlUp for VDI to automate the “Session Activity” report so that it generates an Excel file containing the “Unique Users” metric and the user table, and then sends this file to management by email.
The email should be sent automatically at the start of each quarter and contain the data from the previous quarter.

I asked the AI Assistant, but the proposed solutions were not really satisfactory. Customer management isn’t allowing AI at all so the customer has no chance to use AI Assistant for that task. (mgmt decision!)

Has anyone already solved the same task?

The customer’s goal is to identify the “Unique Users” per quarter and have a list of who actually logged into the VDI environment.

Perhaps with Workflows or a custom dashboard?
Of course, the latter does not send emails, but it might be an acceptable alternative.

/CC


I did something similar for a report on who was still using Citrix Desktops (by department) using a workflow triggered by a form. It reports the user’s username and how many sessions they’ve had in the last x days.

I just used a custom query (beta) with the attached SQL.

My current flow is a branch of the “Device Inventory Report to Email” Template. It just creates a new document since its reporting the last x days, adds the document link to an email sent to the form requestor.

Required integrations:
Microsoft Excel
Microsoft Outlook
Controlup for VDI


I could set it to be on a scheduled release and then set the emails for the recipients as a global variable, but right now I just needed a quick way to get some info and this seemed to work for me.

Continue reading and comment on the thread ‘Automating Quarterly VDI “Unique Users” Reports with ControlUp Workflows and Custom SQL Queries’.  Not a member? Join Here!


Categories: All Archives, ControlUp Dashboards, ControlUp for VDI, ControlUp Scripts & Triggers, ControlUp Workflows
Topics: Automation, Automation & Alerting, Citrix, ControlUp Insights, Microsoft, Reporting, Scripts, Triggers, VDI

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp DEX solutions.

Browse here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2026 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..