I'm adding a Keychain entry programatically onto a machine via the security command as such:
security add-generic-password -a "[email protected]" -s "Exchange" w "P@ssw0rd!" -T "/Applications/Microsoft Outlook"
It looks great, just like one generated one when you set up Outlook! However, I still get the "Microsoft Outlook wants to access key Exchange in your keychain" prompt when the user opens Outlook.
Have I missed a step here somewhere? I was of the impression that -T allowed applications to access a keychain entry unprompted?