enabling easy access on MacOS via TeamViewer_Assignment not working


Hi All,

Trying to enable easy access and add to a group via script on existing TV installs but the command I'm using doesn't appear to be working:

sudo /Applications/TeamViewerHost.app/Contents/Helpers/TeamViewer_Assignment assign YES -api-token 12345678 -grant-easy-access -group MyGroup

OS is 12.6.1 and TV v15. API token generated in Company Administration->Apps->Create script token. Not only is easy access not being enabled in the app but the device isn't being added to our group in the TV console. Any ideas of what else I might need?