Applications and updates · GraphQL query

applicationInstallUserSettings query

Retrieves an ApplicationInstallUserSettings by its graph object id: one user's settings for a supported macOS application install (Safari, Terminal, or Finder). At most one exists per install and user, reachable through the ApplicationInstall's userSettings field or the EndpointUser's applicationInstallUserSettings field; find them across endpoints with graphSearch on the APPLICATION_INSTALL_USER_SETTINGS object type. Returns a not-found error when no object has the id, and an error when the id belongs to another object type.

Response

Returns an ApplicationInstallUserSettingsPayload!

Arguments

Name Description
id - ID! The ApplicationInstallUserSettings identifier.
mockOptions - MockDataInput Options for mock data generation. Options supported: key: "PLATFORM", value: OsPlatform

Example

Query

query applicationInstallUserSettings(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  applicationInstallUserSettings(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      seen {
        ...SeenOnlineFragment
      }
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      applicationInstall {
        ...ApplicationInstallFragment
      }
      endpointUser {
        ...EndpointUserFragment
      }
      settings {
        ... on SafariSettingsMacOS {
          ...SafariSettingsMacOSFragment
        }
        ... on TerminalSettingsMacOS {
          ...TerminalSettingsMacOSFragment
        }
        ... on FinderSettingsMacOS {
          ...FinderSettingsMacOSFragment
        }
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

Variables

{"id": 4, "mockOptions": MockDataInput}

Response

{
  "data": {
    "applicationInstallUserSettings": {
      "node": ApplicationInstallUserSettings
    }
  }
}