---
title: "Unshare document group template from user"
method: DELETE
path: "/v2/document-group-templates/{document_group_template_id}/roles/{user_id}"
---

# Unshare document group template from user

`DELETE /v2/document-group-templates/{document_group_template_id}/roles/{user_id}`

## Request

- Base URL: `https://api.signnow.com`
- URL: `https://api.signnow.com/v2/document-group-templates/{document_group_template_id}/roles/{user_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/signnow/apis/signnow-api/docs/v2/document-group-templates/:document_group_template_id/roles/:user_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows API users to remove sharing access for a specific user from the document group template.

**Notes**

* The owner can unshare any user except themselves.
* A shared user (`viewer`/`sender`) can unshare only themselves (self-unshare).

## Response `204`

User successfully unshared. No content returned.

## Other responses

- `400`: Bad request. Possible errors: * Document group template not found. * Managing user not found. * Entity owner can't unshare it from himself. * You don't have access to the entity. * User role not found.
- `401`: Incorrect or missing bearer token.

---

[API](https://skmtc.dev/signnow/apis/signnow-api.md) - [All operations](https://skmtc.dev/signnow/apis/signnow-api/llms.txt) - [OpenAPI document](https://skmtc.dev/signnow/apis/signnow-api/revisions/1c9c30a6142b?raw)
