---
schema_version: "1"
id: d5930295059db02a852b3372af8fe9dc9a9ed09702876b85954a037c2014c058
title: Salesforce Global Variables Blocked by Lightning Web Security
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lwc/lightning-components-security/guides/lws/lws-restricted-globals.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-components-security/guide/lws-restricted-globals.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: eb3784ed549a069bda07d475ab577948e12a4f765f21bc46ca3e0752e13e9cf4
products:
  - Security for Lightning Components
  - lwc
---
# Salesforce Global Variables Blocked by Lightning Web Security

Lightning Web Security (LWS) blocks access to some global JavaScript objects that are available to other Salesforce features.

Lightning web components (LWC) **don’t have access** to:

- `$A`
- `Aura`
- `Sfdc`
- `sforce`

LWS restricts access to these objects for Lightning web components because they are either deprecated or not supported for LWC.

**See Also**

- [Lightning Web Security Limitations](https://developer.salesforce.com/docs/platform/lightning-components-security/guide/lws-limitations.md)
