> ## Documentation Index
> Fetch the complete documentation index at: https://developer.onetrust.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IAB CCPA US Privacy String

# Overview

The California Consumer Privacy Act (CCPA) was enacted to provide California consumers with greater transparency and control over their personal information.

Initially prompted by regulation in the California Consumer Privacy Act (CCPA), the IAB's US Privacy String was created to support compliance with the CCPA.

> 👍
>
> For more information, see the following IAB CCPA's resources:
>
> * [About the IAB CCPA](https://www.iab.com/guidelines/ccpa-framework/)
> * [IAB CCPA US Privacy String (GitHub)](https://github.com/InteractiveAdvertisingBureau/USPrivacy/blob/master/CCPA/US%20Privacy%20String.md#us-privacy-string-format)
> * [IAB CCPA US Privacy API (GitHub)](https://github.com/InteractiveAdvertisingBureau/USPrivacy/blob/master/CCPA/USP%20API.md#in-app-support)

# Implement the US Privacy String

## Prerequisites

In order to setup US Privacy String on your app, you will first need to follow the set up guidance for [Configuring the CCPA US Privacy String](https://my.onetrust.com/s/article/UUID-020f7d40-a824-1de7-92e3-d10392c5da6c#UUID-020f7d40-a824-1de7-92e3-d10392c5da6c_section-idm23227007796643) in your OneTrust tenant.

## How it works

With this latest implementation, there is no SDK code for the app to call to initialize or set the IAB US Privacy String. The SDK handles it automatically based on the configuration in the OneTrust tenant.

![](https://files.readme.io/97f5dc4-rtaImage.png "rtaImage.png")

## Access the US Privacy String

Per IAB Standards, the US Privacy String is saved to registry under the **TCF** section **IABUSPrivacy\_String** key.

```xml BrightScript
value = “”
Key = “IABUSPrivacy_String”
regSection = createObject(“roRegistrySection”, “TCF”)
if regSection.exists(key) then value = regSection.read(Key)
print value
```

> 📘
>
> If your application is configured with a single geolocation rule, OneTrust will save and update the IAB CCPA values for every location, regardless of the value provided for geolocation. This is because the OneTrust SDK does not make a geolocation API call when only one geolocation rule exists and we will be unable to determine which location to apply the IAB CCPA updates to.