1- .. include :: /Includes.rst.txt
1+ .. include :: /Includes.rst.txt
22
3- .. _setup-user :
4- .. _creating-a-new-user-for-the-introduction-site :
3+ .. _setup-user :
4+ .. _creating-a-new-user-for-the-introduction-site :
55
66=================
77Setting up a User
@@ -12,90 +12,142 @@ To explore the last details of setting up a backend user
1212through the process of creating a new user. To make it more
1313interesting, we will also create a new user group.
1414
15+ .. contents :: Table of contents
1516
16- .. _step-create-a-new-group :
17+ .. _step-create-a-new-group :
1718
1819Step 1: Create a New Group
1920==========================
2021
21- Let's create a new user group using the *Access * module.
22+ If you have access to the console there is a quick console command which
23+ creates basic user groups for you. You can adjust them to your needs:
2224
23- .. figure :: /Images/ManualScreenshots/UserManagement/BackendAccessCreateNewGroup.png
24- :alt: Creating a new backend group from the Access module
25+ .. tabs ::
2526
27+ .. group-tab :: DDEV
2628
27- Start by entering the name ("Resource editors"), optionally
28- a description and choose "All users" as sub-group.
29+ .. code-block :: bash
2930
30- .. figure :: /Images/ManualScreenshots/UserManagement/BackendAccessNewGroupGeneralTab.png
31- :alt: Entering the general information about the new group
31+ ddev typo3 setup:begroups:default -g Both
3232
33+ .. group-tab :: Composer
3334
34- Let's keep things simple for the further permissions. Try to do
35- the following:
35+ .. code-block :: bash
3636
37- - for **Modules **, just choose "Web > Page" and "Web > View"
38- - for **Tables (listing) ** and **Tables (modify) **, choose "Page"
39- and "Page content"
40- - for **Page types **, select "Standard"
37+ vendor/bin/typo3 setup:begroups:default -g Both
4138
42- and save.
39+ .. group-tab :: Classic
4340
44- Move to the "Mounts and workspaces" tab and select the "Resources"
45- page as DB mount. To achieve that easily start typing "Res" in
46- the wizard at the right-hand side of the field. It will display
47- suggestions, from which you can select the "Resources" page.
41+ .. code-block :: bash
4842
49- .. figure :: /Images/ManualScreenshots/UserManagement/BackendAccessNewGroupDBMount.png
50- :alt: Defining DB mounts using the suggest wizard
43+ typo3/sysext/core/bin/typo3 setup:begroups:default -g Both
5144
45+ If you did not auto-create the user groups, create one in the backend module
46+ :guilabel: `System > Backend Users `. Use the dropdown in the module header
47+ to switch to the "Backend User Groups" submodule.
5248
53- Let's ignore all the rest. Use the "Save and close" action
54- to get back to the group list.
49+ .. figure :: /Images/ManualScreenshots/UserManagement/BackendUserGroupsModule.png
50+ :alt: Screenshot of the Module "Backend Users", submodule "Backend User Groups" in the TYPO3 Backend
5551
52+ Click the button "+ Create a new backend user group" if you want to create a new group. Or edit one of those created by the command.
5653
57- .. _step-create-the-user :
54+ Start by entering the name for the new group, optionally inherit from group
55+ "Editors".
56+
57+ .. figure :: /Images/ManualScreenshots/UserManagement/BackendUserGroupsTabGeneral.png
58+ :alt: Tab General with the backend user group title and Group inheritance
59+
60+ Enter a name for the group
61+
62+ Let us keep things simple for the further permissions.
63+
64+ Go to tab **Module Permissions **:
65+
66+ .. figure :: /Images/ManualScreenshots/UserManagement/BackendUserGroupsTabModule.png
67+ :alt: Tab "Module Permissions" with the list of allowed modules
68+
69+ For **Allowed Modules ** choose "Web > Page" and "Web > View"
70+
71+ Then to tab **Record Permissions **:
72+
73+ .. figure :: /Images/ManualScreenshots/UserManagement/BackendUserGroupsTablePermission.png
74+ :alt: Tab "Record Permissions", field "Table Permissions" with option Read & Write chosen for tables Page and Page Content
75+
76+ Choose **Table Permissions ** choose "Read & Write" for tables Page and Page content
77+
78+ On the same tab in field "Allowed page types" Choose "Standard".
79+
80+ Move to the "Mounts and workspaces" tab.
81+
82+ .. figure :: /Images/ManualScreenshots/UserManagement/BackendUserGroupsTabMounts.png
83+ :alt: Tab "Mounts and workspaces" in the backend user group edit form.
84+
85+ Select the "Startpage" page as DB mount (starting point for the page tree).
86+
87+ Then save the user group by clicking the "Save" button in the module header.
88+
89+ .. _step-create-the-user :
5890
5991Step 2: Create the User
6092=======================
6193
62- Similarly to what we have done before, let's create a new
63- user using the * Access * module.
94+ You can quickly create a backend user using a TYPO3 console command and following
95+ the prompt:
6496
65- .. figure :: /Images/ManualScreenshots/UserManagement/BackendAccessCreateNewUser.png
66- :alt: Creating a new backend user from the Access module
97+ .. tabs ::
6798
99+ .. group-tab :: DDEV
68100
69- Enter the username, password, group membership:
101+ .. code-block :: bash
70102
71- .. figure :: /Images/ManualScreenshots/UserManagement/BackendAccessNewUserGeneralTab.png
72- :alt: Setting the base information for the new user
103+ ddev typo3 typo3 backend:user:create
104+
105+ .. group-tab :: Composer
106+
107+ .. code-block :: bash
108+
109+ vendor/bin/typo3 typo3 backend:user:create
110+
111+ .. group-tab :: Classic
73112
113+ .. code-block :: bash
74114
75- .. note ::
115+ typo3/sysext/core/bin/typo3 typo3 backend:user:create
76116
77- If we were creating a new administrator, we would just need
78- to check the "Admin (!)" box. Admin users don't need to belong
79- to any group, although this can still be useful to share
80- special settings among administrators .
117+ If you prefere to use the TYPO3 backend, in the backend module
118+ :guilabel: ` System > Backend Users ` use the drop down in
119+ module header to switch back to the "Backend Users" submodule. You have a
120+ button to create a new backend user there .
81121
82- Now switch to the "Mounts and workspaces" tab
83- to ensure that the "Mount from Groups" settings are set:
122+ .. figure :: /Images/ManualScreenshots/UserManagement/BackendUserCreate.png
123+ :alt: The main submodule Backend users of the backend user module
84124
85- .. figure :: /Images/ManualScreenshots/UserManagement/BackendAccessNewUserMountFromGroups.png
86- :alt: Checking the "Mount from groups" setting
125+ Click the button "Create new backend user"
87126
88127
89- This makes it so that the DB and File mounts are taken from
90- the group(s) the user belongs to and are not defined at user-level.
128+ Enter the username, password, group membership:
129+
130+ .. figure :: /Images/ManualScreenshots/UserManagement/BackendUserCreateTabGeneral.png
131+ :alt: Setting the base information for the new user
132+
133+
134+ .. note ::
135+ If we were creating a new administrator, we would just need
136+ to check the "Admin (!)" box. Admin users don't need to belong
137+ to any group, although this can still be useful to share
138+ special settings among administrators.
91139
92140Save and close the record. We will check the result of our work
93141by using the simulate user feature we saw earlier.
94142
95- .. figure :: /Images/ManualScreenshots/UserManagement/BackendAccessSimulateResourceEditor.png
96- :alt: Let's simulate our new user!
143+ .. figure :: /Images/ManualScreenshots/UserManagement/SimulateEditor.png
144+ :alt: A backend user in the backend user module with their action buttons.
145+
146+ Click the switch to user button
147+
148+ If you used the default "Editors" group you should see this:
97149
98- You should see the following:
150+ .. figure :: /Images/ManualScreenshots/UserManagement/SwitchUserMode.png
151+ :alt: The TYPO3 backend viewed by a standard editor
99152
100- .. figure :: /Images/ManualScreenshots/UserManagement/BackendResourceEditorUser.png
101- :alt: The backend as seen by Resource McEditor
153+ Use the User menu on the top right to find the "Exit switch user mode" button and switch back to your admin world.
0 commit comments