I'm adding a Keychain entry programatically onto a machine via the security command as such:
security add-generic-password -a "username@exchange.server.here" -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?
Best Answer
In newer versions of OS X you now have to add a partition teamid
If you 'allow' Exchange or whichever app to use the password and then inspect it
You can see the teamid and then use that in the command above. For instance for Sequel Pro:
Now when you script this trusted password you can use: