---
title: "getUserOrganizations"
canonical: "https://support.appfire.com/space/PSJ/755400782/getUserOrganizations"
format: markdown
---
> Macro (aura-html)


 > Macro (button-handy)




> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | getUserOrganizations(username) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Gets organizations names in which the user is present.

Gets organizations names in which the user is present.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | username | string | Yes | The username of the user for which we'll retrieve the organizations. |

## Return Type

**String []**

Returns all the organizations names in which the user is present.

## Example

### Example

```javascript
return getUserOrganizations(currentUsername());
```

## See also

> Macro (contentbylabel)