Retrieves an endpoint's LocalPolicies by its graph object id: the local security policy, either Windows user rights assignments and security options or macOS device restrictions, guest and root account, and login mechanism settings. Each Endpoint has at most one, also reachable through its localPolicies field; find them across endpoints with graphSearch on the LOCAL_POLICIES 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 a LocalPoliciesPayload!
Arguments
| Name | Description |
|---|---|
id - ID!
|
The LocalPolicies identifier. |
mockOptions - MockDataInput
|
Options for mock data generation. Options supported: key: "PLATFORM", value: OsPlatform example: "mockOptions": { "options": [ { "key": "PLATFORM", "value": "WINDOWS" } ] } |
Example
Query
query localPolicies(
$id: ID!,
$mockOptions: MockDataInput
) {
localPolicies(
id: $id,
mockOptions: $mockOptions
) {
node {
id
orgId
seen {
...SeenOnlineFragment
}
objectType
objectTypeLabel
displayName
firstSeen
lastSeen
createdAt
updatedAt
snapshotInfo {
...GraphObjectSnapshotInfoFragment
}
endpoint {
...EndpointFragment
}
osSpecific {
... on LocalPoliciesWindows {
...LocalPoliciesWindowsFragment
}
... on LocalPoliciesMacOS {
...LocalPoliciesMacOSFragment
}
}
findings {
...FindingsPayloadFragment
}
issues {
...IssuesPayloadFragment
}
issuesSummary {
...IssuesSummaryFragment
}
}
}
}
Variables
{"id": 4, "mockOptions": MockDataInput}
Response
{"data": {"localPolicies": {"node": LocalPolicies}}}