Sharded cluster instance(Node) getting authentication error

The users exist in mongos shell. but when I login sharded primary/secondary node getting bellow error.


“uncaught exception: Error: not authorized on admin to execute command { usersInfo: 1.0, lsid: { id: UUID(“8c86070e-17f1-417c-9219-6e194f0d8c15”) }, $clusterTime: { clusterTime: Timestamp(1680605390, 1), signature: { hash: BinData(0, 1BA96384824611713539DD67BE1B9F88757608DF), keyId: 7158478101695954964 } }, $db: “admin” } :
_getErrorWithCode@src/mongo/shell/utils.js:25:13
DB.prototype.getUsers@src/mongo/shell/db.js:1659:15
@(shell):1:1”

I can able to authenticate in mongos shell but I am getting error while tried to login mongodb sharded nodes like primary/ secondary