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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | removeUserFromGroup(user, group) | **Package** | adm |
| **Alias** | removeUserFromGroup | **Pkg Usage** | removeUserFromGroup(user, group) |

## Description

> Macro (excerpt)
> 
> Removes a single user from a group if the user is in that group.

Removes a single user from a group if the user is in that group.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| User | String | Yes | Username or userkey. |
| Group | String | Yes | Name of the group. |

## Return Type

**Boolean**

Returns "true" if operation succeeded.

## Example

```
removeUserFromGroup("user.3", "Senior Developers");
```

> ⚠️ The look-up is first made after the userkey, then after the username.

## See also

> Macro (contentbylabel)