Headless CMS > Advanced
User Creation
Learn how to create a user with custom access to Headless CMS.
- how to create a user group
- how to define access permissions for a user group
- how to create a user
Webiny allows you to add multiple users with different access permissions to your application. You can define the access permissions by creating a user group. In this tutorial, we will learn how to create a user group with custom access permission to the Headless CMS. Then we will create a user within that user group.
As an example, we will create a user group with the following access permissions:
- Permission to view and update a specific content model group.
- Permission to view, create, and update all content models inside the respective content model group.
- Permission to view, create, and update the content entries inside the content models.
We will do this in 3 steps:
- Step 1: Create a user group.
- Step 2: Define access permissions.
- Step 3: Create user within the user group.
Step 1: Create a User Group
- From the Side Menu, Click Settings > ACCESS MANAGEMENT > Groups. 
- Click + NEW GROUP. - ✔️ The form to create a new user group opens. 
- In the Name textbox, type E-Commerce. 
- In the Slug textbox, type e-commerce. 
- In the Description textbox, type User group for E-Commerce Managers. 
Step 2: Define Access Permissions
- Under the Permissions section, in the Content accordion, click All locales. 
- Under the Permissions section, click Headless CMS. - ✔️ The Headless CMS accordion opens. 
- In the Access Level dropdown, click Custom access. 
- Under GRAPHQL API TYPES, select all the three checkboxes (Read, Manage, and Preview). 
- Under the CONTENT MODEL GROUPS section: - a. In the Access Scope dropdown, click Only specific groups. - ✔️ A list of content model groups in the current locale appears. - b. Select the E-Commerce checkbox. - c. In the Primary Actions dropdown, click Read, write. 
- Under the CONTENT MODELS section: - a. In the Access Scope dropdown, click All models. - b. In the Primary Actions dropdown, click Read, write. 
- Under the CONTENT ENTRIES section: - a. In the Access Scope dropdown, click All entries. - b. In the Primary Actions dropdown, click Read, write. 
- Under PUBLISHING ACTIONS, check both - Publish and Unpublish checkboxes. 
- Click SAVE GROUP. - ✔️ The message “Group saved successfully!” displays. 
Step 3: Create User
- From the Side Menu, Click Settings > ADMIN USERS > Users 
- Click + NEW USER. - ✔️ The New User screen opens. 
- In the First Name textbox, type new user’s first name (e.g. John). 
- In the Last Name textbox, type new user’s last name (e.g. Doe). 
- In the Email textbox, type new user’s email (e.g. johndoe@example.com). 
- In the Password textbox, type new user’s password. 
- In the Group dropdown, click E-Commerce. 
- Click SAVE USER. - ✔️ The message “User saved successfully.” displays.