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

# PUT /ver2/SecurityService.svc/groups/{groupIdOrName}/members/Async

`PUT /ver2/SecurityService.svc/groups/{groupIdOrName}/members/Async`

## 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}/members/Async`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/SecurityService.svc/groups/:groupIdOrName/members/Async/put.ts> (a function with typed inputs; its response is checked against the schema)

Asynchronously sets the members of a Group, replacing the current members, if any. You cannot set the members of the Administrators Group.

** Security:** Requires Manage Users and Groups system right.

** SDK API:**  `envianceSdk.groups.setGroupMembersAsync(groupIdOrName, members, onsuccess, onerror)`
null


envianceSdk.groups.setGroupMembersAsync
```
[
  "Group Name 0001",
  [
    "eoleg1",
    "eoleg2"
  ],
  "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

- SetGroupMembersAsync
  - `members` string[]

## Response `default`

not available

- string, guid

---

[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)
