I am not a scripter, I'll preface this post with that. My apologies if the answer is obvious.
History - we utilize TeamViewer in our environment. We are attempting to register the HOST with our account utilizing an API token. The below when run on a local system in the terminal runs and sets the account registration with no issues.(note the variables token$ and group$ are hard coded, I just left them out here).
/Applications/TeamViewerHost.app/Contents/Helpers/TeamViewer_Assignment -api-token token$ -group "group$" -grant-easy-access -reassign
If I put this command in a script in a separate policy and run the script after the Teamviewer HOST installation policy it does not set the account registration. The script runs, and finishes with exit code 0, but it's not set.
If I tie this command to the TeamViewer HOST package install policy in the Files and Process section, it shows in policy log that it runs, but again never sets the account assignment.
Thank you for any help with this