For the complete documentation index, see llms.txt. This page is also available as Markdown.

Manage Data Holders

A data holder is an organization discovered to hold data associated with a user's virtual presence. Data holders are automatically identified when a virtual presence is scanned.

Data holders represent entities such as online retailers, social media platforms, or SaaS services that have interacted with the user's email account or other online presence.

Retrieving a Data Holder

To retrieve a single data holder by its unique identifier, use the getDataHolder method. This will return the data holder if it exists, or undefined if not found.

try {
  const dataHolder = await privacyInteractionClient.getDataHolder(dataHolderId)
  if (dataHolder) {
    // Data holder found.
    console.log(dataHolder.name, dataHolder.domainName)
  } else {
    // No data holder with this ID exists.
  }
} catch (error) {
  // Handle/notify user of errors
}

Listing Data Holders

To retrieve all data holders associated with a specific virtual presence, use the listDataHolders method. Results are paginated.

A call to listDataHolders returns a ListOutput object containing a list of matching items and a nextToken to support pagination. If no results are found, the result will contain empty items. Always check the value of the returned nextToken since there are more results to retrieve when nextToken is defined.

try {
  let nextToken: string | undefined = undefined
  do {
    const listOutput = await privacyInteractionClient.listDataHolders({
      virtualPresenceId: 'virtual-presence-id',
      limit: 20,
      nextToken,
    })

    for (const dataHolder of listOutput.items) {
      console.log(dataHolder.name, dataHolder.protectionState)
    }

    nextToken = listOutput.nextToken
  } while (nextToken !== undefined)
} catch (error) {
  // Handle/notify user of errors
}

Input Parameters:

Parameter
Type
Required
Description

virtualPresenceId

string

Yes

The identifier of the virtual presence to list data holders for.

limit

number

No

Maximum number of items to return. Will be defaulted if omitted.

nextToken

string

No

A pagination token from a previous call.

Data Holder Protection States

Each data holder has a protection state indicating its current status in the monitoring lifecycle:

State
Description

MONITORED

The data holder is being actively monitored for privacy changes.

ACTION_REQUESTED

An action (e.g., deletion request) has been initiated against this data holder.

RESOLVED

The data holder interaction has been resolved.

Subscribing to Data Holder Updates

To receive real-time notifications when data holders are discovered or updated during scanning, see Subscriptions.

Last updated