---
title: "getUsersFromOrganizations"
canonical: "https://support.appfire.com/space/PSJC/572096513/getUsersFromOrganizations"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Gets users from a specified organization or list of organizations.

Gets users from a specified organization or list of organizations.

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | getUsersFromOrganizations(organizations) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| organizations | String [] | Yes | The organizations names. |

## Return Type

**String []**

Returns all the users from an organization.

## Examples

### Example 1

```
return getUsersFromOrganizations({"First Organization", "Second Organization"});
```

### Example 2

```
return getUsersFromOrganizations("My Organization");
```

## See also

> Macro (contentbylabel)