---
title: "Get user role for template"
method: GET
path: "/v2/templates/{template_id}/roles/{user_id}"
---

# Get user role for template

`GET /v2/templates/{template_id}/roles/{user_id}`

## Request

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

This endpoint allows API users to retrieve a user's role for a shared template.

**Note**: This endpoint is accessible to the template owner and users with access (sender or viewer).

## Response `200`

Successful response.

- object
  - `data` object: Role of the user for the template.
    - `role` string: Role of the user: `owner`, `sender`, or `viewer`.

## Other responses

- `400`: * Wrong, expired, or missing token. * The template doesn't exist. * You are not the template owner. * The user with `user_id` doesn't have a role in the template.

---

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