Skip to main content

Environment variables

Environment variables controls which system variables are available in tasks and adds fixed values for your organization.

Use Security → Environment variables to choose which system variables are available in tasks or to add values for your organization. Review the purpose and recipients before enabling a variable. Do not put long-lived keys, passwords, or unnecessary personal information into ordinary variables.

Manage system variables

The list describes available client and user information, including names, identifiers, account, email, employee number, external user ID, and department values. Multiple departments may produce list values; services consuming them must handle the actual format.
  1. Review the variable name, identifier, and description.
  2. Enable only the values the business task needs and check the saved state.
  3. Use a test member to verify the resulting task context.
Warning: Enabling QWENWORK_USER_SSO_TOKEN allows AI to read an available short-lived user SSO credential. Confirm the intended recipient and use before enabling it. A missing or expired credential is not supplied.
Admin console: control which system variables are exposed to the client environment.

Maintain custom variables

  1. Open the custom variables tab and add a variable.
  2. Enter a unique identifier and value that satisfy the displayed validation rules. For example, ENTERPRISE_API_BASE can hold https://api.example.com.
  3. Choose its enabled state, save, and check the identifier, state, and update time in the list.
  4. To change it, edit the value or state and save again.
Check the value and enabled state separately. Before deleting a variable, confirm that relevant tasks do not depend on it and read the confirmation. If saving fails or another administrator changed the configuration, inspect the latest saved value before resubmitting.
Admin console: manage fixed-value custom variables separately from system variables.

Frequently asked questions

Who provides each kind of environment variable?

QwenWork provides system variables. An administrator chooses which ones to make available and fills in the names and values of custom variables.

What should I check if a desktop task can't read a variable?

Check that the system variable is enabled or that the custom variable was saved. Then test in the employee's enterprise environment with the exact variable name. Return to: Security → Security overview