Skip to main content

Hi, we need to see if for terms (or other entities) certain roles have viewer rights. (...and if not set them)

Below is a GraphQL, but I need to filter only the term.assignedIdenties.capability.OperationSet where the name is "viewer”. How would I go about doing this? (outside filtering in ONE Desktop of course)

query GetCapabilities_term($gid: GID!) {
  term(gid: $gid) {
    gid
    assignedIdentities {
      grantingStrategy
      capability {
        name
        id
        operationSets {
          name
          displayName
          id
        }
      }
      identity {
        ... on Role {
          name
          __typename
          ... on GroupRole {
            name
            numberOfUsers
            gid
          }
        }
      }
    }
  }
}

Anybody??


Hi @Marnix Wisselaar, apologies about the late reply here, I’ve checked with our team and they have suggested trying adding a filter such as:operationSets (filter: "name:'viewer'") 

operationSets (name:"viewer")  {
          name
          displayName
          id
        }

Will be the edit in your current set up, could you let me know if it works? Thank you!


Yes, that works. But is there a reference to the syntax somewhere? I'd like to understand how to work with filters incl. operators like in, between, and, or, not, etc. When I try filter: {}, I also get errors. What is the syntx of the framework Ataccama is using?

 


Sorry, I mean like this: (tried Filter, JobFilter)
query GetJobs($size: Int, $filter: Filter) {
  baseJobs(
    versionSelector: {draftVersion: true}
    orderBy: {property: "createdAt", direction: DESC}
    size: $size
    filter: $filter

With varaibles:
{
  "size": 10,
  "filter": {
    "createdAt": {"gt": "2023-09-28T13:00:00"},
    "type": {"eq": "PROFILING"},
    "linkedEntityId": {"eq": "74543024-0000-7000-0000-000002490fcf"}
  }
}


Hi @Marnix Wisselaar, could you please raise a ticket for this if this is still an ongoing issue? The team will be on it shortly 👍🏻


Reply