<p>The free version of Craft does not currently allow for more than a single admin user. You'll need to upgrade to the paid version for this functionality, where everything you mention is possible.</p>
<p>Here's a knowledge base article all about front end user accounts: <a href="https://craftcms.com/knowledge-base/front-end-user-accounts" rel="nofollow noreferrer">https://craftcms.com/knowledge-base/front-end-user-accounts</a></p>

CC BY-SA 4.0
2024-03-14T11:27:33.377Z
2024-03-14T11:27:33.377Z
James Smith
<p>Free version isn't enough. After you upgrade to the pro version, you could register as many users as you want. The most simple way to restrict access to a full template would be to add the following twig at the top part of your template:</p>
<pre><code>{% requireLogin %}
</code></pre>
<p>That will prevent any visiter which isn't logged in to view the page.</p>
<p>If you want to restrict some part of your template but still allow other parts t be visible, you could set up different user groups and restrict any part of any template to specific user group with the following code:</p>
<pre><code>{% if currentUser.isInGroup('groupHandle') %}
      
     whatever you want to display...

{% endif %}
</code></pre>

CC BY-SA 4.0
2024-03-17T00:15:42.137Z
2024-03-17T00:15:42.137Z
LessMore Creative Studio
<p>I use Craft CMS 4. Please tell me, is it possible to authorize users in Craft CMS? In general, the goal is this: I want to show some elements on the site only to authorized users. For example, comments. Is it possible to do this? And if possible, I will be glad to have some minimal instructions))
Important! I am using the free version of the system</p>

<craft4>
How do I authorize/register visitors on the site?
# How do I authorize/register visitors on the site?

(Asked by: username_0 on 2024-03-13)

I use Craft CMS 4. Please tell me, is it possible to authorize users in Craft CMS? In general, the goal is this: I want to show some elements on the site only to authorized users. For example, comments. Is it possible to do this? And if possible, I will be glad to have some minimal instructions))
Important! I am using the free version of the system

**Tags:** craft4

---

## 2 answers

### Answer by username_1 on 2024-03-14. Score: 4 | Accepted answer

The free version of Craft does not currently allow for more than a single admin user. You'll need to upgrade to the paid version for this functionality, where everything you mention is possible.

Here's a knowledge base article all about front end user accounts: <https://craftcms.com/knowledge-base/front-end-user-accounts>


---

### Answer by username_2 on 2024-03-17. Score: 2

Free version isn't enough. After you upgrade to the pro version, you could register as many users as you want. The most simple way to restrict access to a full template would be to add the following twig at the top part of your template:
{% requireLogin %}

That will prevent any visiter which isn't logged in to view the page.
If you want to restrict some part of your template but still allow other parts t be visible, you could set up different user groups and restrict any part of any template to specific user group with the following code:
{% if currentUser.isInGroup('groupHandle') %}
      
     whatever you want to display...

{% endif %}


---

