Sometimes you want to add a configuration profile to a Mac during imaging.
Here's one way. (I updated the article thanks to a suggestion from @macjutsu - I originally placed the mobileconfig file in /var/tmp, but we like placing items in /Library/<Your Organization's Name>). And I added a reference to @timsutton's Make Profile Pkg thanks to a suggestion from @daz_wallace.
Get the Configuration profile into place.
If you don't already have a folder for organzational assets in /Library, create one now.
If the /Library/<Your Organization's Name> folder isn't already open, open it now.
Copy the file from ~/Downloads to /Library/<Your Organization's Name>.
Use Composer to package it up along with a postinstall script.
Hint: When you drag the mobileconfig file from Finder to Terminal, the path and filename will be displayed with any special characters (like the space character) properly escaped with a backslash. If you drag the mobileconfig file from Finder to the script editor in Composer, the space character won't be escaped with the backslash.
/usr/bin/profiles -I -F /Library/My Organization Name/my special config.mobileconfig
rm -rf /Library/My Organization Name/my special config.mobileconfig
Upload to Jamf Pro and add to a configuration.
Bonus: If you have a Developer ID, don't forget to sign your QuickAdd package.