---
title: "PATCH /ver2/SecurityService.svc/groups/{groupIdOrName}"
method: PATCH
path: "/ver2/SecurityService.svc/groups/{groupIdOrName}"
tags: ["Security"]
---

# PATCH /ver2/SecurityService.svc/groups/{groupIdOrName}

`PATCH /ver2/SecurityService.svc/groups/{groupIdOrName}`

## Request

- Base URL: `https://api.enviance.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enviance.com/ver2/SecurityService.svc/groups/{groupIdOrName}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/SecurityService.svc/groups/:groupIdOrName/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates a Group in the System. You cannot update the Administrators group.

**Security:** Requires Manage Users and Groups system right.

**SDK API:**  `envianceSdk.groups.updateGroup(groupIdOrName, groupInfo, onsuccess, onerror)`
null


envianceSdk.groups.updateGroup
```
[
  "Group Name 0001",
  {
    "name": "Group Name 0001 - changed",
    "rights": [],
    "members": []
  },
  "onsuccess",
  "onerror"
]
```
envianceSdk.scim.fullUpdateGroup
```
[
  {
    "schemas": [
      "urn:scim:schemas:core:1.0"
    ],
    "displayName": "Scim Grptrtrtr",
    "members": [
      {
        "value": "scimupdatetest998990444"
      }
    ],
    "externalid": "sweet apple"
  },
  "8fea1bf7-8afd-44ef-a9cd-c047af7653c2",
  "onsuccess",
  "onerror"
]
```
envianceSdk.scim.partialUpdateGroup
```
[
  {
    "schemas": [
      "urn:scim:schemas:core:1.0",
      "urn:scim:schemas:enviance:group"
    ],
    "urn:scim:schemas:enviance:group": {
      "rights": [
        "Manage Users",
        "Manage Groups"
      ]
    },
    "externalId": "banana",
    "meta": {
      "attributes": [
        "urn:scim:schemas:enviance:group:rights",
        "members"
      ]
    }
  },
  "8fea1bf7-8afd-44ef-a9cd-c047af7653c2",
  "onsuccess",
  "onerror"
]
```

## Path parameters

- `groupIdOrName` string, required

## Headers

- `EnvApi-Systemid` string
- `EnvApi-Packageid` string
- `EnvApi-Udf-DateTime-Iso-In-CustomFields` string
- `EnvApi-Udf-DateTime-ReadInUserTz` string
- `EnvApi-Udf-Value-Invariant` string
- `EnvApi-Localization-All` string
- `x-client-request-id` string

## Request body

- UpdateGroup
  - `groupInfo` EnvianceRestServicesVer2SecurityGroupInfo
    - `id` string, guid
    - `name` string
    - `rights` string[]
    - `members` string[]

## Response `default`

not available

---

[API](https://skmtc.dev/enviance/apis/restapi.md) - [All operations](https://skmtc.dev/enviance/apis/restapi/llms.txt) - [OpenAPI document](https://skmtc.dev/enviance/apis/restapi/revisions/45b2200a8cf2?raw)
