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

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | userInGroup(groupName, userName) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Verifies whether the selected user is in the selected group(s).

Verifies whether the selected user is in the selected group(s).

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | groupName | String | Yes | Group name to check the membership for. |
> | userName | String | Yes | User name whose membership needs to be checked. |

## Return Type

**Boolean (true/false)**

Returns true if user is a member of the group. Otherwise returns false.

## Example

```javascript
userInGroup("confluence-users", "jdoe");
```

## See also

> Macro (contentbylabel)