リファレンスにはあまり詳しく書いてないから↓この辺読むといいと思う
https://www.sqlshack.com/prevent-sql-server-login-authentication-scope-using-logon-trigger/