When trying to push a profile to a user account on a Macintosh computer, using a Software Delivery task or Managed Delivery policy, the push fails with an error:
The operation couldn't be completed. (InternalError error 1.)
ITMS 7.5 - 8.1 (all versions)
Mac OSX/ MacOS (all versions)
To successfully deploy a profile to a user account, the following workaround can be followed:
su -l "$(id -F $(/opt/altiris/notification/nsagent/lib/helpers/logins-list -current-uid))" -c "/usr/bin/profiles -v -I -F $PWD/PROFILETEST.mobileconfig" >> /tmp/logs.txt 2>&1
The command line includes logging, ">> /tmp/logs.txt 2>&1" which can be removed if logging is undesired.