<p>You likely won't need to write a plugin at all – you can easily create different user groups (e.g. "Workers" and "Clients") from the Control Panel, and grant those groups different <em>permissions</em>. An example of a permission is "Access the CP". The user group permissions will be automatically applied to any new users added to the group.</p>

<p>To create a user group, visit <em>Settings -> Users</em> in the CP. The edit form for a user group will have a plethora of checkboxes for every possible permission. Note that when checked, many of these checkboxes will actually reveal even more checkboxes, for even more fine grained control over permissions.</p>

CC BY-SA 3.0
2015-05-29T21:21:32.100Z
tnx for your answer, but can I have different custom fields to thouse users groups? for example: the client wont't have Document ID required field, but worker will have one.
Alex
CC BY-SA 3.0
2015-05-30T12:36:52.463Z
Unfortunately not – all users/user groups share the same custom fields.
Mats Mikkel Rummelhoff
CC BY-SA 3.0
2015-05-31T09:37:54.657Z
There's a relevant feature request up at the Feedback site: http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/7962942-define-custom-field-layouts-per-user-group.
Mats Mikkel Rummelhoff
CC BY-SA 3.0
2015-05-29T18:53:11.107Z
2015-05-29T18:53:11.107Z
Mats Mikkel Rummelhoff
<p>Let's start with this I have Jobs, which would be added from the front end and backend as well, thouse jobs have to have Clients and Workers attached to them, which are basically users with differnt fields, the workers they have to have ability to login in the system, the clients maybe too in the future, that's why I would like to ask which will be the best way to accomplish this? I did some basic plugins in craft, but this one is more complicated and I woud like to ask for the best way of doing it. I was thinking if it's possible to use UserElementType to accomplish this.  I'm very new in craft so some plugin or some code snipped would be veryhelpful for me thanks in advanced!</p>

<elementtype><craft-pro>
Create Plugin, Elementtype suggestion
# Create Plugin, Elementtype suggestion

(Asked by: username_0 on 2015-05-29)

Let's start with this I have Jobs, which would be added from the front end and backend as well, thouse jobs have to have Clients and Workers attached to them, which are basically users with differnt fields, the workers they have to have ability to login in the system, the clients maybe too in the future, that's why I would like to ask which will be the best way to accomplish this? I did some basic plugins in craft, but this one is more complicated and I woud like to ask for the best way of doing it. I was thinking if it's possible to use UserElementType to accomplish this. I'm very new in craft so some plugin or some code snipped would be veryhelpful for me thanks in advanced!

**Tags:** elementtype, craft-pro

---

## 1 answers

### Answer by username_1 on 2015-05-29. Score: 3 | Accepted answer

You likely won't need to write a plugin at all – you can easily create different user groups (e.g. "Workers" and "Clients") from the Control Panel, and grant those groups different *permissions*. An example of a permission is "Access the CP". The user group permissions will be automatically applied to any new users added to the group.

To create a user group, visit *Settings -> Users* in the CP. The edit form for a user group will have a plethora of checkboxes for every possible permission. Note that when checked, many of these checkboxes will actually reveal even more checkboxes, for even more fine grained control over permissions.

> **Comments:**
> **username_0**: tnx for your answer, but can I have different custom fields to thouse users groups? for example: the client wont't have Document ID required field, but worker will have one.  
> **username_1**: Unfortunately not – all users/user groups share the same custom fields.  
> **username_1**: There's a relevant feature request up at the Feedback site: http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/7962942-define-custom-field-layouts-per-user-group.  

---

