Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Week 2: Presenting "Automate Sucess" and "Integration for Innovation" - WATCH NOW

Shared Automations: How to identify the user running the Automation

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
DanielZandersQlik

Shared Automations: How to identify the user running the Automation

Last Update:

Jul 4, 2025 10:22:55 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jul 4, 2025 10:17:16 AM

Attachments

With the release of shared automations in Qlik Automate, it is now possible to run an automation in a Shared Space for users other than the owner. The automation will run using the owner’s Qlik account and any third-party connections as they were configured by the owner.

When an automation is run by another user, it is possible to retrieve this user’s information during the automation run. This article outlines how this is done.

This is only supported when the automation is run from the console or API. It is not supported for triggered automations when they are run from the trigger URL or webhook automations when they are run from the webhook event. The reason for this is that in these cases, no user subject is sent to the automation (triggered executions use the execution token instead of a user token, and webhook automations have no user involved when they are run by the webhook event).

However, if triggered or webhook automations are run manually or over API, it will be possible to retrieve the user's info.

Identifying the user who started the Automation

When an automation is run by any user, it is possible to retrieve the user id and user info for the user who executed the automation during the automation run.

  1. Use the Get Automation Run block (A) from the Qlik Cloud Services connector and configure it with the Automation ID and Automation Run ID (C) formulas from the formula picker (B).

    get automation run.png

    add formula.png

    add formula automation id.png

  2. The Get Automation Run block will return the executedByID to identify who has started the automation:

    executed by.png

  3. Configure the Get User block to use the executedById parameter as input for the User Id parameter:

    configure the get user block with executebyid.png

    configure the get user block with executebyid filled out.png

  4. You can then use a Condition block to evaluate the returned value from the Get User block.

    For example, you can check if the user is a part of a predefined list of users:

    use a condition block to evaluate the returned value.png

    use a condition block to evaluate the returned value completed example.png

Environment

  • Qlik Cloud Automate
  • Qlik Cloud
Labels (1)
Version history
Last update:
2 weeks ago
Updated by: