I need to check which roles will be performed by a Windows Auth user. We use only Windows Auth Login to check access rights for specific users. We have some problems for members who do not have the right accessibility. I need to check whether the reason was really membership in sql or in our program itself. Thanks.
What our program looks like by running SP with multiple IFs to check if which user member is
IF IS_MEMBER('Administration') = 1 SELECT 'Admin' IF IS_MEMBER('Public') = 1 SELECT 'Public'
sort of.
I need to check if which user has user login. I know his username, but donβt know how to verify it. I think we are using SQL SERVER 2008 or higher.
If I run this request using my Windows Auth Login.
SELECT IS_MEMBER('Public')
I got the result = 1, which means that I am under Roles \ Database Roles \ Public
we have certain roles in the database, but I donβt see which group I work with until I have fulfilled the above request and saw the result as β1β.
I needed to do the same and check if a certain user (using the Windows Auth login) is not in which group he is. He is just an ordinary user, so asking him to fulfill my request is almost impossible. thanks.
source share