The command below will fail if the department is not provided.
ucxbxxxc.exe SCRIPT=C:\AUTOMIC\CallAPI\script.txt LOGON=98,SMITH,PASSWORD INI=C:\AUTOMIC\CallAPI\WINDOWS\ucxbxxxc.ini
20230128/113741.926 - U03000000 Program 'UC4 Call Interface', version '21.0.2+build.22', change list '1642137645' started.
20230128/113741.927 - U03000017 Build Date: '2022-01-14', '05:24:52'
20230128/113742.082 - U00003210 Logon error: Access denied
20230128/113742.082 - U03000002 Program 'UC4 Call Interface' version '21.0.2+build.22' ended abnormally.
Release : 21.0.4
If the LOGON parameter is used, the 'CLIENTID,USER,DEPARTMENT,PASSWORD' are needed and mandatory.