Anyone out there who could tell me what's wrong wi...
# troubleshoot
c
Anyone out there who could tell me what's wrong with this? I am trying to get a list of all the AD groups I ingested into Datahub after setting up SSO, I want to get a list of Groups in a query, then create a mutation to delete them.
Copy code
query ListCorpGroups {
  search(input: { type: corpgroup, query: "*"}) {
    total
    count
    searchResults {
      entity {
        urn
        type
        ... on corpgroup {
          properties {
            name
          }
        }
      }
    }
  }
}
Getting the following error:
Copy code
{
  "errors": [
    {
      "message": "Validation error (WrongType@[search]) : argument 'input.type' with value 'EnumValue{name='corpgroup'}' is not a valid 'EntityType' - Expected enum literal value not in allowable values -  'EnumValue{name='corpgroup'}'.",
      "locations": [
        {
          "line": 2,
          "column": 10
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    },
    {
      "message": "Validation error (UnknownType@[search/searchResults/entity]) : Unknown type 'corpgroup'",
      "locations": [
        {
          "line": 9,
          "column": 16
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    }
  ],
  "data": null,
  "extensions": {}
}
Thanks In advance!
1
g
it should be
type: CORP_GROUP
query should be looking something like this
Copy code
query ListCorpGroups {
  search(input: { type: CORP_GROUP, query: "*"}) {
    total
    count
    searchResults {
      entity {
        urn
        type
        ... on CorpGroup {
             properties {
                displayName
                description
          }
        }
        }
      }
    }
  }
@cuddly-butcher-39945 It is enum, I was referring from this page
c
Thank you!