Got this error message for some of the monitors in sqlserver probe.
"The user does not have permission to perform this action"
- active_users
- buf_cachehit_ratio
- login_count
- server_cpu
- transactions
The sql login already granted VIEW SERVER STATE permission.
Unusually, after executing "GRANT VIEW SERVER STATE TO [Public]", the permission issue was resolved.
Why does sqlserver probe requires view server state permission to public?
Release : 20.4.x
sqlserver probe :5.45
View server state permission to public is not required for sqlserver probe
Check that view server state permission to the specific user was given correctly
Steps to check;-
If not granted, Please click on grant and press ok as shown in above snapshot
Check if granting only this to the user, without granting view server state permission to public resolves the issue
In this use case
Though the VIEW SERVER STATE was granted to the user. The VIEW SERVER STATE was denied on PUBLIC role. This lead to a deny to the user.
Once Deny was unchecked on PUBLIC role, the issue is resolved.