---
schema_version: "1"
id: 2def6e10b774bcc81f5c50f54587a6ff2cac54483fe260347f0f586e51c14912
title: ConnectApi.DataSpaceCollectionRepresentation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_data_space_collection.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_data_space_collection.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3fc31c557903e6054a26381f7801261c95a54f4985607bb7ad7ceae2ae128340
description: Represents a collection of all data spaces that a user is assigned to.
---
# ConnectApi.DataSpaceCollectionRepresentation

Represents a collection of all data spaces that a user is assigned to.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| dataSpaces | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[ConnectApi.DataSpaceInfoRepresentation](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_data_space_info.htm "Represents a data space.")\> | List of all data spaces. | 62.0 |

#### See Also

- [getAllDataSpaces(batchSize, offset, orderBy)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpDataSpace_static_methods.htm#apex_ConnectAPI_CdpDataSpace_getAllDataSpaces_1 "Get a collection of all data spaces that a user is assigned to.")