An error relating to impersonation level is received

On Windows, an error is received when you try to use any of the IBM Workload Scheduler commands (for example, conman, composer, datecalc). The error message is similar to the following example:
AWSDEQ008E Error opening thread token ../../src/libs/tokenutils.c:1380 
message = Either a required impersonation level was not provided, or the 
provided impersonation level is invalid

Cause and solution:

This issue occurs when the user account that is used to run the IBM Workload Scheduler command line does not have the user right: "Impersonate a client after authentication". This is a security setting that applies to a subset of Windows versions. For more information, see the related Microsoft documentation.The upgrade does not grant this right to existing users.

To resolve this problem, grant the user right "Impersonate a client after authentication" to all users that need to run IBM Workload Scheduler commands on the workstation. To do this, follow these steps:
  1. Select StartProgramsAdministrative ToolsLocal Security Policy
  2. Expand Local Policies, and then click User Rights Assignment.
  3. In the right pane, double-click Impersonate a client after authentication.
  4. In the Local Security Policy Setting dialog box, click Add.
  5. In the Select Users or Group dialog box, click the user account that you want to add, click Add, and then click OK.
  6. Click OK.