RunCommand error with (Unauthorized) not authorized on db_name to execute command

Hello all,

I try to create a json validator on a collection and use the db.RunCommand to execute the validator when startup my service every time. On my local test environment, DB version 3.6.17 it works fine. But when I run the common on production server it is failed by "(Unauthorized) not authorized on db_name to execute command ", how can I fix this problem?

Thanks,

James