Context Settings - "Organization Admin Permissions Needed" - GraphQL Error

Hi, I’m receiving an “Organization Admin Permissions Needed” permissions error when attempting to modify my organization Context settings. I am an owner in the organization.

Digging in the console, I found a GraphQL request that errored.

Request URL: https://circleci.com/graphql-unstable
Request Method: POST
Status Code: 200 OK

{
  "operationName": "ContextsHmbQuery2",
  "variables": {
    "contextId": "[my-context-id]"
  },
  "query": "query ContextsHmbQuery2($contextId: ID!) {\n  context(id: $contextId) {\n    ...ContextHmb\n    __typename\n  }\n}\n\nfragment ContextHmb on ContextHmb {\n  id\n  name\n  createdAt\n  groups {\n    edges {\n      node {\n        ...SecurityGroups\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n  resources {\n    ...EnvVars\n    __typename\n  }\n  __typename\n}\n\nfragment EnvVars on EnvironmentVariable {\n  variable\n  createdAt\n  truncatedValue\n  __typename\n}\n\nfragment SecurityGroups on Group {\n  id\n  name\n  __typename\n}\n"
}

Error:

{"errors":[{"message":"Cannot query field `context' on type `QueryRoot'.","locations":[{"line":2,"column":3}],"extensions":{"field":"context","type":"QueryRoot"}}]}
3 Likes

I am getting the same error today.

I see the following in Settings > VCS.

GraphQL error: Cannot query field `organization' on type `QueryRoot'.

I am a GitHub org admin.

Hey prayashm,

Our Engineering team just deployed a fix. Can you confirm you are now able to view your VCS settings page? Thanks!

Angelisa Candler
Support Engineer @ CircleCI

@angelisa , yes it worked fine!