---
schema_version: "1"
id: 06c0ae40deaa276f62665d4bded03e5eafed5562863042d18cfb1d38a8e737c2
title: Run SOQL Queries in User Mode as the Automated Process User
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/release-notes/260-0-0/rn_apex_WithUserModeQuery.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_WithUserModeQuery.htm&release=260&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e2dd9c4b6e387aa60fd0d40224d4dcf61e98b093d8ee8611900fd379e5e3c089
description: In API version 66.0 and later, you can now run SOQL queries containing the WITH USER_MODE clause as the Automated Process User. In API Version 65.0 and earlier, such queries fail unless they are run explicitly in system mode.
products:
  - Cross Cloud Packages Solutions
release: "260"
---
# Run SOQL Queries in User Mode as the Automated Process User

In API version 66.0 and later, you can now run SOQL queries containing the WITH USER\_MODE clause as the Automated Process User. In API Version 65.0 and earlier, such queries fail unless they are run explicitly in system mode.

**Where:** The feature is available in Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.