---
schema_version: "1"
id: 670d38f7d740d173b831800791f8f129e5cb893ebb99b0577ab52e248bcedcc6
title: Restricted Access to Salesforce Global Variables
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lwc/lightning-components-security/guides/locker/locker-restricted-globals.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-components-security/guide/locker-restricted-globals.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: fcf16d00be238978f2e6c7d574721ead7c6ef6ab08b01d7a6625e91d4282457c
products:
  - Security for Lightning Components
  - lwc
---
# Restricted Access to Salesforce Global Variables

Lightning Locker blocks access to some global JavaScript objects that are available to other Salesforce features.

[Lightning web components (LWC)](/docs/platform/lwc/guide/get-started-introduction.html) **don't have access** to:

- `$A`
- `Aura`
- `Sfdc`
- `sforce`

Locker restricts access to these objects for Lightning web components because they are either deprecated or can lead to cross-framework dependencies.
