# Remove User From Local Group

> Removes a user, group or built-in account from a local group.

Source: https://docs.capaone.com/capaone/application-manager/powerbricks/bricks/remove-user-from-local-group/  
Product: CapaOne — a separate CapaSystems product; do not apply this page to any other.

Removes a user, group or built-in account from a local group.

## Parameters

#### Username
*Required*

The account to remove from the group. Enter a local user name (JohnDoe), a domain account (CORP\\JohnDoe), a built-in account such as INTERACTIVE, or a security identifier (S-1-5-4). Built-in account names follow the Windows display language, for example INTERAKTIV on Danish Windows. The security identifier works on every language. If the account is not found, the brick fails.

#### Group Name
*Required*

The local group to remove the account from, as a name or a security identifier. Example: Administrators or S-1-5-32-544. The security identifier works on every language. If the group is not found, the brick fails.

## Details

- **Category:** User management
- **Brick ID:** `UsrMgr-RemoveUserFromLocalGroup`

## Raw JSON definition

```json
{
  "category": "userManagement",
  "description": "Removes a user, group or built-in account from a local group.",
  "developerVendor": "CapaSystems A/S",
  "displayName": null,
  "id": "UsrMgr-RemoveUserFromLocalGroup",
  "name": "Remove User From Local Group",
  "parameters": [
    {
      "allowManualInput": false,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "The account to remove from the group. Enter a local user name (JohnDoe), a domain account (CORP\\JohnDoe), a built-in account such as INTERACTIVE, or a security identifier (S-1-5-4). Built-in account names follow the Windows display language, for example INTERAKTIV on Danish Windows. The security identifier works on every language. If the account is not found, the brick fails.",
      "id": "Username",
      "name": "Username",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": false,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "The local group to remove the account from, as a name or a security identifier. Example: Administrators or S-1-5-32-544. The security identifier works on every language. If the group is not found, the brick fails.",
      "id": "GroupName",
      "name": "Group Name",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    }
  ],
  "powershell": {
    "base64Encoded": true,
    "function": "RnVuY3Rpb2..."
  },
  "type": "powerbrick",
  "version": "2026.10.14.1"
}
```
