Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11576

setParameter is never allowed in Atlas

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Atlas
    • Labels:
      None

      Hi Team,

      setLogLevel command uses setParameter command underneath which is not allowed in Atlas.

      When run against a paid Atlas Cluster with atlasAdmin role, say M10, db.setLogLevel(1, "query") gives the following error:

      {
      	"ok" : 0,
      	"errmsg" : "not authorized on admin to execute command { setParameter: 1.0, logComponentVerbosity: { query: { verbosity: 1.0 } } }",
      	"code" : 13,
      	"codeName" : "Unauthorized"
      }
      

      This is because to run setParameter, hostManager role is required which Atlas does not offer.

      From our documentation on Unsupported Commands, it appears that setparameter and eventually setLogLevel is available for Clusters M10 and larger, according to the Atlas User Privileges granted. It would be better if we explicitly mention that these commands are never available in Atlas, no matter what the instance size of the Atlas Cluster.

      Regards,
      Pooja

            Assignee:
            ravind.kumar Ravind Kumar (Inactive)
            Reporter:
            pooja.gupta@mongodb.com Pooja Gupta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              6 years, 2 weeks, 6 days ago