I have a user that only allows me to perform queries in SQL but I need to know through a query what permissions that user has in SQL Server.
I have a user that only allows me to perform queries in SQL but I need to know through a query what permissions that user has in SQL Server.
Exploring the web I have come across this answer, I couldn't test it, but I hope it helps you.
This query is intended to provide a list of permissions that a user has applied directly to the user account or through roles that the user has.