[server] Add access control mechanism for getting triggers.

TODO: Add test