SQL Server 2022 Contained Always On SQL Agent UI display issues for non sys admin roles
Hello to all, I have a lab set up within my environment, It is currently running SQL Server 2022 CU3 with a 4 node setup under Always On Contained Groups.
Within this I have a test database , and I have master / msdb with the option as reuse system database when creating this contained group.
I've notice that only SysAdmins are allowed to view SQL Agent jobs within the group listeners, and just like any conventional SQL Agent tasks the UI is available to create new tasks, modify jobs,etc.
However, when you simply create a non sys admin user, but you want to allow a sql user to operate , change, edit, etc . The UI does not display any jobs.
The only option I see for the user is to use T-SQL to be able to run / edit / etc/ jobs.
Is this a bug? Am I missing something here?.
USE [AG_Con_w_ReuseSys_msdb]
create user sqlUser from login sqlUser
ALTER ROLE [SQLAgentOperatorRole] ADD MEMBER sqlUser ;
ALTER ROLE [SQLAgentReaderRole] ADD MEMBER sqlUser ;
ALTER ROLE [SQLAgentUserRole] ADD MEMBER sqlUser ;
The only time the user can see the agent jobs is if the user is a member of the sys admin role.
This particular user can log in within the Listener , but the user simply can't see any jobs using the UI.