> For the complete documentation index, see [llms.txt](https://docs.phocassoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.phocassoftware.com/administration/users/create-a-user-template.md).

# Create a user template

Create a templates for SSO automatic user account creation.

{% hint style="info" %}
User permission: [Administration > Users](/administration/users/add-update-user/user-permissions.md#administrator-permissions)
{% endhint %}

Templates are used alongside the **User account creation** feature in the [Single sign-on (SSO) settings](/administration/configuration/set-up-sso.md) on the [**Configuration** page](/administration/configuration.md). You must create the template first, so it is available for selection from the list in the SSO settings. Phocas then applies that template when it automatically creates new user accounts.

A user template is an account that is set up in a specific way. It is not a *user account*, as it does not correspond to a physical user, and it does not count toward the number of licenses in use. A template contains the same details that would be applied to a new user account if you cloned an existing user account, which can include: Language, Time zone, Phone, Mobile, Home, Group, Territory, Team, License, Folder Permissions, Database Permissions, and Favorites.&#x20;

## Create a template from a new user account (recommended) <a href="#createausertemplate-createatemplatefromanewuseraccount-recommended" id="createausertemplate-createatemplatefromanewuseraccount-recommended"></a>

[Add a new user account or clone an existing account](/administration/users/add-update-user.md) for the sole purpose of creating a template and set up the account as required. At the bottom of the **User** tab, in the **Use as a template...** setting, select **Yes** and click **Apply**.

<div align="left"><figure><img src="https://3446572173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvQCmtGTR7MsjcI62Vdki%2Fuploads%2FQ7mikeskdsVxpgzWWu1f%2FTemplate%20user%20img.png?alt=media&amp;token=6629bfca-bdbd-4b65-bcbd-ddccd2785711" alt="" width="267"><figcaption></figcaption></figure></div>

## Convert an existing user account into a template <a href="#createausertemplate-convertanexistinguseraccountintoatemplate" id="createausertemplate-convertanexistinguseraccountintoatemplate"></a>

When you convert a user account into a template, that *user* account no longer exists as a user account. It becomes a template account. This method is not recommended because it poses a risk of losing a legitimate user account. However, it is possible to switch back and forth from a user account to a user template.

Open the user account, click **Edit**, and edit the account setup as required. Then, at the bottom of the **User** tab, in the **Use as a template...** setting, select **Yes** and click **Apply** (see image above).

## Select templates in your IdP <a href="#createausertemplate-selecttemplatesinyouridp" id="createausertemplate-selecttemplatesinyouridp"></a>

If you create multiple templates in Phocas, you can set up your identity provider (IdP) to determine which of those templates is used when each new user account is automatically created in Phocas. This is an advanced task carried out by your IdP administrator. Learn more about IdPs and automatic user account creation on the [Set up single sign-on (SSO)](/administration/configuration/set-up-sso.md) page.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.phocassoftware.com/administration/users/create-a-user-template.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
