When using backgroundServiceAllowedCommands the error message displayed is technical in nature related to unable to access config settings etc. (Screenshot in linked ticket).
We should look to enhance the message to be simpler and clearer. Something like:
The running of command 'source' is blocked by your administrator.
Create a standard user account : New-LocalUser bob -Password ('P@ssw0rd!' | ConvertTo-SecureString -AsPlainText -Force) ; Add-LocalGroupMember -Group Users -Member bob
Attempt as the non-admin user to run a command that's not in the allow list : choco source add -n Test -s C:\temp --allow-self-service
When using
backgroundServiceAllowedCommands
the error message displayed is technical in nature related to unable to access config settings etc. (Screenshot in linked ticket).We should look to enhance the message to be simpler and clearer. Something like:
The running of command 'source' is blocked by your administrator.
Repro:
New-LocalUser bob -Password ('P@ssw0rd!' | ConvertTo-SecureString -AsPlainText -Force) ; Add-LocalGroupMember -Group Users -Member bob
choco source add -n Test -s C:\temp --allow-self-service
You should see the following error:
References
Zendesk
┆Issue is synchronized with this Gitlab issue by Unito