Not authorized for setFeatureCompatibilityVersion

What roles or privileges does a user need for setFeatureCompatibilityVersion?

I’m getting the following error even though this user has atlasAdmin, dbAdmin, dbAdminAnyDatabase, readWriteAnyDatabase roles for admin database:

Atlas atlas-hu2kj6-shard-0 [primary] admin> db.adminCommand( { setFeatureCompatibilityVersion: “4.4” } )
MongoServerError: not authorized on admin to execute command { setFeatureCompatibilityVersion: “4.4”, lsid: { id: UUID(“2f438c9c-2fd9-4ceb-a861-9268b482d476”) }, $clusterTime: { clusterTime: Timestamp(1644689693, 1), signature: { hash: BinData(0, 728C97F1BAE7678B6BEFB20EAC3EC95276CC8D63), keyId: 7063867780415619076 } }, $db: “admin” }

MongoDB won’t let me contact support even though we’re forced to perform this upgrade to an M10 cluster. I WOULD VERY MUCH APPRECIATE ANY HELP!

Thank you.

You need clusteradmin or root role to run this command

Thanks for the info. Where on the Atlas UI can I find this?

The setFeatureCompatibilityVersion command is an administrative command used during upgrades. You cannot set this on Atlas Free Tier (M0) or shared (M2/M5) clusters

Please check this link

Thank you. We upgraded to an M10. Is the command available there? If so, where?

No it is not available in M10 too
Check this