Lab: Deploy a Replica Set: After reset of workspace am unable to add user


2022-04-30T07:15:47.736+0000 E QUERY    [js] Error: couldn't add user: not authorized on test to execute command { createUser: "m103-admin", pwd: "xxx", roles: [ { role: "root", db: "admin" } ], digestPassword: true, writeConcern: { w: "majority", wtimeout: 600000.0 }, lsid: { id: UUID("3dd5d4f8-91dd-45e5-880f-1b15fbc25c69") }, $clusterTime: { clusterTime: Timestamp(1651302884, 1), signature: { hash: BinData(0, 7BF03125932E391FFB28D868E810D61A234C52BB), keyId: 7092291667822116865 } }, $db: "test" } :

You are connected to test DB
Switch to admin db and try

Thanks, I reset the workspace and it started working after an hour