To be either ran through a login policy or using a launch daemon.
Testing of the script is recommended before putting in production.
It appears that with ADmitMac v7 on OS X 10.7 and 10.8, the local Directory Services accounts for Mobile Accounts are created without any reference to the sAMAccountName. This means that user record names do not shown in the alias field of the users accounts in System Preferences For example jbloggs logs in the first time ok but subsequent logins will only work with jbloggs@FQDN Alternatively i have created this script to run as a login policy to address this issue.
Jamf wants to hear your feedback around Jamf Pro Navigation and Office365 settings configuration.