Posted on 10-07-2021 07:54 AM
I have been asked to create a method of forcing Microsoft Teams to start for all users regardless. With assistance I have created a .plist that is added to the LaunchAgent that forces Microsoft Teams to start for a user on first login and therefor after. When I manually add the .plist to the LaunchAgent for a user it works as required. I have packaged the .plist with Composer and now want to apply it to users.
Looking for some direction. Thanks
DMG has been created and added to Jamf Admin set to FEU = yes
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.microsoft.teams</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/open</string>
<string>/Applications/Microsoft Teams.app</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
10-08-2021 06:47 AM - edited 10-08-2021 06:56 AM
Is there a reason you are not turning this in to a .mobileconfig and uploading it in to JAMF or using a Applications & Custom Settings payload and deploying it as a configuration profile?
Do to it with policy like you are doing. You probably want to package it as a .dmg.
To do this with a .pkg
Basically, this will put it where it needs to go. It probably won’t take effect until the user logs in again after the policy runs since it is RunATLoad
(I just noticed you are already doing the .dml and FEU/FUD stuff so I redacted that but left it incase it helpful for someone else)
All of this is very sloppy for a plist and will likely have a lot of consistency issues. This is also not manageable. Someone can just change the setting as you are not “forcing it”. If you need to remove it you have to use a second policy to do it, and good luck changing/updating anything as each of those will need their own policies. Finally forget any kind of version control or knowing which Mac has what settings applied by that plist if you have multiple versions of it.
How I would do it is taking your plist and shove it in a Configuration Profile using Applications & Custom Settings. Set the Level as User instead of system, and set the Distribution Method to Install Automatically. This will also manage the setting, and easily updateable if you need to change something. If you are new to MacOS, a Configuration Profile is basically the closest thing Apple/JAMF has to GPO. If you would do something with GPO on Windows, use a Configuration Profile in JAMF.
you can also turn your json plist in to a xml mobile config and upload it directly in to JAMF as a configuration profile. You wont have as much control over modifying that as using Applications & Custom Settings but it will get the job done.
This may be useful to you.
https://docs.microsoft.com/en-us/deployoffice/privacy/mac-privacy-preferences
https://docs.jamf.com/technical-articles/Deploying_Custom_Configuration_Profiles_Using_Jamf_Pro.html
10-11-2021 06:55 AM - edited 10-11-2021 06:57 AM
Thanks for getting back. So I followed your advice by adding the Plist to the Application & Custom Setting Payload, but I am not seeing you this Plist is getting to the Users LaunchAgent folder. Even a bigger question is how does the LaunchAgent fold get created? Had to create one under Preference folder prior to adding the .Plist to it.