I am trying to figure out how to deploy a script to our users that deregisters the O365 suite. On the Microsoft site I have found the following Terminal command:
defaults write com.microsoft.Word ResetOneAuthCreds -bool YES
This works like a charm when I run it locally, but when I try to run it through Jamf (selfService) it gives no result. I think this might be because the script through Jamf does not run as the logged in user.
This is what I have sofar:
#!/bin/bash
#Remove all Microsoft users
defaults write com.microsoft.Word ResetOneAuthCreds -bool YES
hoping there is someone that can point me in the right direction here.