function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Add an apex trigger to an authorized user's account

I'm still new to salesforce so sorry if I have the terminology wrong.
I'm authorizing users through oAuth (Connected app) via a PHP app. I then want to enable an Apex trigger on every user's account; in short, I want to send all contacts to my app as they're added. I have the Apex trigger written and working, but I'm lost as how to enable the trigger on a per-user basis.
Thanks for any guidance you can provide.
I couldn't understand your scenario much, but what I understand is you want to invoke an Account's object trigger once account's owner(users) get authenticated from the external system and then account trigger work's to send associated contacts ?? 

Can you please confirm above understanding and additionally please provide your code as well for getting an idea what exactly trigger says.