First time open of office apps -> call company portal

jameson
Contributor II

I would like that first time a user open any office application it will call company portal policy so the device can be registrated as we use conditional access.

I would rather not have it in my enrollment, as it should work without any prompts the basic software installation.

Any idea of how this is can be done ? - Office will be installed during enrollment, so don´t know if there is any scripting experts that can give some input or there may be even another way?

3 REPLIES 3

jameson
Contributor II

Anyone?

patgmac
Contributor III

Jamf can not take action based on an app being launched.

m_donovan
Contributor III

You could do some investigation and figure out if a new file is created upon first launch. I suspect there would be or at least a modified one. If there is then it is possible to set a launch agent/daemon to watch a path for changes. You could then use that to trigger a policy. Build in a cleanup routine to remove the launch agent/daemon once the policy is done. It is possible but would require a good bit of digging and a lot of testing. It really depends on when you need this policy to run.