---
title: "admGetSpaceCategories"
canonical: "https://support.appfire.com/space/PSCONF/15304274/admGetSpaceCategories"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | admGetSpaceCategories(spaceKey) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the space categories (all).

Returns the space categories (all).

## Return Type

**[CLabel []](https://appfire.atlassian.net/wiki/spaces/PSCONF/pages/15303915)**

Returns an array of CLabel predefined structures.

## Example

```javascript
CLabel categories = admGetSpaceCategories("TST");

for(CLabel cat in categories) {
	print(cat.name);
}
```

Prints every category name for the Test space in the log file.

## See also

> Macro (contentbylabel)