There is a user and two databases on server (db1 and db2). User can connect to server having default database db1 where he can exec sp. In sp syntax we use synonyms for db2 tables under dbo scheme.
All that is done in order to allow user just connect and exec one stored procedure. It worked noraml but now The server principal "user" is not able to access the database "db2" under the current security context
.
User gets output from sp when code does not touch synonyms to db2. What should be updated? I cant grant select to user for db2 objects.