---
title: "Removes a member group's sharing permissions for a template."
method: DELETE
path: "/v2.1/accounts/{accountId}/templates/{templateId}/{templatePart}"
tags: ["Templates"]
---

# Removes a member group's sharing permissions for a template.

`DELETE /v2.1/accounts/{accountId}/templates/{templateId}/{templatePart}`

Removes a member group's sharing permissions for a specified template.

## Path parameters

- `accountId` string, required
- `templateId` string, required
- `templatePart` string, required

## Request body

- GroupInformation — This object is used for both requests and responses. Some properties (such as `endPosition`) only apply to the response of [Groups: list](/docs/esign-rest-api/reference/usergroups/groups/list/).
  - `endPosition` string — The last index position in the result set.
  - `groups` Group[] — A collection group objects containing information about the groups.
    - `accessType` string
    - `dsGroupId` string — Reserved for Docusign.
    - `errorDetails` ErrorDetails — This object describes errors that occur. It is only valid for responses and ignored in requests.
      - `errorCode` string — The code associated with the error condition.
      - `message` string — A brief message describing the error condition.
    - `groupId` string — The Docusign group ID for the group. This is a read-only property.
    - `groupName` string — The name of the group.
    - `groupType` string — The group type.
    - `isManagedByScim` boolean
    - `lastModifiedOn` string
    - `permissionProfileId` string — The ID of the permission profile associated with the group. Use [AccountPermissionProfiles: list](/docs/esign-rest-api/reference/accounts/accountpermissionprofiles/list/) to get a list of permission profiles and their IDs.
    - `userGroupType` string
    - `users` UserInfo[] — A list of the users in the group. This property is not used by [Groups: list](/docs/esign-rest-api/reference/usergroups/groups/list/). To get a list of users see [GroupUsers: list](/docs/esign-rest-api/reference/usergroups/groupusers/list/)
      - `accountId` string — The account ID associated with the envelope.
      - `accountName` string — The name on the account.
      - `activationAccessCode` string — Access code provided to the user to activate the account.
      - `email` string — The user's email address.
      - `errorDetails` ErrorDetails — This object describes errors that occur. It is only valid for responses and ignored in requests.
        - `errorCode` string — The code associated with the error condition.
        - `message` string — A brief message describing the error condition.
      - `ipAddress` string
      - `loginStatus` string — When **true,** indicates that the user is logged in. This is a read-only property.
      - `membershipId` string — The user's membership ID.
      - `sendActivationEmail` string — This field is no longer supported for most accounts. To create an eSignature user without sending an activation email, use the Admin API by following [these steps](/docs/admin-api/how-to/create-active-user/).
      - `uri` string — A URI containing the user ID.
      - `userId` string — The ID of the user to access.
      - `userName` string — The name of the user.
      - `userStatus` string — Status of the user's account. One of: - `ActivationRequired` - `ActivationSent` - `Active` - `Closed` - `Disabled`
      - `userType` string — The type of user, for example `CompanyUser`.
    - `usersCount` string — The total number of users in the group.
  - `nextUri` string — The URI for the next chunk of records based on the search request. It is `null` if this is the last set of results for the search.
  - `previousUri` string — The URI for the prior chunk of records based on the search request. It is `null` if this is the first set of results for the search.
  - `resultSetSize` string — The number of results in this response. Because you can filter which entries are included in the response, this value is always less than or equal to the `totalSetSize`.
  - `startPosition` string — The starting index position of the current result set.
  - `totalSetSize` string — The total number of items in the result set. This value is always greater than or equal to the value of `resultSetSize`.

## Response `200`

Successful response.

## Other responses

- `400` — Error encountered.

---

[API](https://skmtc.net/docusign/apis/docusign-esignature-rest-api.md) · [All operations](https://skmtc.net/docusign/apis/docusign-esignature-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/docusign/docusign-esignature-rest-api/versions/77f1998c313d/schema)
