Show permissions for database user

  • Hi,

    If I grant privileges to database user with GRANT statement,

    is there way to get the list of all permissions that I granted for each database user.

    Can anyone help!

    Thanks

  • Is something like this what you are looking for:

    SELECT NAME, permission_name, class_desc , OBJECT_NAME (major_id) , state_desc

    FROM sys.database_permissions dp

    INNER JOIN sys.database_principals pri ON dp.grantee_principal_id = pri.principal_id

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply