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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | removeGroupFromGroups(groupsToRemoveFrom, childName) | **Package** | adm |
| **Alias** | removeGroupFromGroups | **Pkg Usage** | removeGroupFromGroups(groupsToRemoveFrom, childName) |

## Description

> Macro (excerpt)
> 
> Remove the provided group from the specified groups if it is already added.

Remove the provided group from the specified groups if it is already added.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| Groups to remove from | Array of strings | Yes | Group names that the child group should be removed from. |
| Child name | String | Yes | Child group to be removed from the parent groups. |

## Return Type

**Boolean**

Returns "true" if operation succeeded.

## Examples

### Example 1

```
removeGroupsFromGroups("ParentGroup", "ChildGroup");
```

Result: The "ChildGroup" will be removed from the "ParentGroup".

### Example 2

```
removeGroupsFromGroups({"Group1","Group2"}, "ChildGroup");
```

Result: The "ChildGroup" will be removed from "Group1" and "Group2".

> ⚠️ In order to allow Jira to handle nested groups you would need first to enable or disable support for nested groups on each directory individually. Select **User Directories** from the JIRA administration menu, **edit** the directory and select **Enable Nested Groups** See [Configuring user directories](https://confluence.atlassian.com/adminjiraserver073/configuring-user-directories-861253197.html).

## See also

> Macro (contentbylabel)