]> git.evergreen-ils.org Git - working/Evergreen.git/blob - docs/admin_initial_setup/describing_your_people.txt
9bf379781c87c4cae1c8d445b6c40f31df5e90d8
[working/Evergreen.git] / docs / admin_initial_setup / describing_your_people.txt
1 Describing your people
2 ======================
3
4 Many different members of your staff will use your Evergreen system to perform
5 the wide variety of tasks required of the library.
6
7 When the Evergreen installation was completed, a number of permission groups
8 should have been automatically created. These permission groups are:
9
10 * Users
11 * Patrons
12 * Staff
13 * Catalogers
14 * Circulators
15 * Acquisitions
16 * Acquisitions Administrator
17 * Cataloging Administrator
18 * Circulation Administrator
19 * Local Administrator
20 * Serials
21 * System Administrator
22 * Global Administrator
23 * Data Review
24 * Volunteers
25
26 Each of these permission groups has a different set of permissions connected to
27 them that allow them to do different things with the Evergreen system. Some of
28 the permissions are the same between groups; some are different. These
29 permissions are typically tied to one or more working location (sometimes
30 referred to as a working organizational unit or work OU) which affects where a
31 particular user can exercise the permissions they have been granted.
32
33 Setting the staff user's working location
34 -----------------------------------------
35 To grant a working location to a staff user in the staff client:
36
37 . Search for the patron. Select *Search > Search for Patrons* from the top menu.
38 . When you retrieve the correct patron record, select *Other > User Permission
39   Editor* from the upper right corner. The permissions associated with this
40   account appear in the right side of the client, with the *Working Location*
41   list at the top of the screen.
42 . The *Working Location* list displays the Organizational Units in your
43   consortium. Select the check box for each Organization Unit where this user
44   needs working permissions. Clear any other check boxes for Organization Units
45   where the user no longer requires working permissions.
46 . Scroll all the way to the bottom of the page and click *Save*. This user
47   account is now ready to be used at your library.
48
49 As you scroll down the page you will come to the *Permissions* list. These are
50 the permissions that are given through the *Permission Group* that you assigned
51 to this user. Depending on your own permissions, you may also have the ability
52 to grant individual permissions directly to this user.
53
54 Comparing approaches for managing permissions
55 ---------------------------------------------
56 The Evergreen community uses two different approaches to deal with managing
57 permissions for users:
58
59 * *Staff Client*
60 +
61 Evergreen libraries that are most comfortable using the staff client tend to
62 manage permissions by creating different profiles for each type of user. When
63 you create a new user, the profile you assign to the user determines their
64 basic set of permissions. This approach requires many permission groups that
65 contain overlapping sets of permissions: for example, you might need to create
66 a _Student Circulator_ group and a _Student Cataloger_ group. Then if a new
67 employee needs to perform both of these roles, you need to create a third
68 _Student Cataloger / Circulator_ group representing the set of all of the
69 permissions of the first two groups.
70 +
71 The advantage to this approach is that you can maintain the permissions
72 entirely within the staff client; a drawback to this approach is that it can be
73 challenging to remember to add a new permission to all of the groups. Another
74 drawback of this approach is that the user profile is also used to determine
75 circulation and hold rules, so the complexity of your circulation and hold
76 rules might increase significantly.
77 +
78 * *Database Access*
79 +
80 Evergreen libraries that are comfortable manipulating the database directly
81 tend to manage permissions by creating permission groups that reflect discrete
82 roles within a library. At the database level, you can make a user belong to
83 many different permission groups, and that can simplify your permission
84 management efforts. For example, if you create a _Student Circulator_ group and
85 a _Student Cataloger_ group, and a new employee needs to perform both of these
86 roles, you can simply assign them to both of the groups; you do not need to
87 create an entirely new permission group in this case. An advantage of this
88 approach is that the user profile can represent only the user's borrowing
89 category and requires only the basic _Patrons_ permissions, which can simplify
90 your circulation and hold rules.
91
92 Permissions and profiles are not carved in stone. As the system administrator,
93 you can change them as needed. You may set and alter the permissions for each
94 permission group in line with what your library, or possibly your consortium,
95 defines as the appropriate needs for each function in the library.
96
97 Managing permissions in the staff client
98 ----------------------------------------
99 In this section, we'll show you in the staff client:
100
101 * where to find the available permissions
102 * where to find the existing permission groups
103 * how to see the permissions associated with each group
104 * how to add or remove permissions from a group
105
106 We also provide an appendix with a listing of suggested minimum permissions for
107 some essential groups. You can compare the existing permissions with these
108 suggested permissions and, if any are missing, you will know how to add them.
109
110 Where to find existing permissions and what they mean
111 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
112 In the staff client, in the upper right corner of the screen, click on *Admin >
113 Server Administration > Permissions*.
114
115 The list of available permissions will appear on screen and you can scroll down
116 through them to see permissions that are already available in your default
117 installation of Evergreen.
118
119 There are over 500 permissions in the permission list. They appear in two
120 columns: *Code* and *Description*. Code is the name of the permission as it
121 appear in the Evergreen database. Description is a brief note on what the
122 permission allows. All of the most common permissions have easily
123 understandable descriptions.
124
125 Where to find existing Permission Groups
126 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
127 In the staff client, in the upper right corner of the screen, navigate to *Admin
128 > Server Administration > Permission Groups*.
129
130 Two panes will open on your screen. The left pane provides a tree view of
131 existing Permission Groups. The right pane contains two tabs: Group
132 Configuration and Group Permissions.
133
134 In the left pane, you will find a listing of the existing Permission Groups
135 which were installed by default. Click on the + sign next to any folder to
136 expand the tree and see the groups underneath it. You should see the Permission
137 Groups that were listed at the beginning of this chapter. If you do not and you
138 need them, you will have to create them.
139
140 Adding or removing permissions from a Permission Group
141 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
142 First, we will remove a permission from the Staff group.
143
144 . From the list of Permission Groups, click on *Staff*.
145 . In the right pane, click on the *Group Permissions* tab. You will now see a
146   list of permissions that this group has.
147 . From the list, choose *CREATE_CONTAINER*. This will now be highlighted.
148 . Click the *Delete Selected* button. CREATE_CONTAINER will be deleted from the
149   list. The system will not ask for a confirmation. If you delete something by
150   accident, you will have to add it back.
151 . Click the *Save Changes* button.
152
153 You can select a group of individual items by holding down the _Ctrl_ key and
154 clicking on them. You can select a list of items by clicking on the first item,
155 holding down the _Shift_ key, and clicking on the last item in the list that
156 you want to select.
157
158 Now, we will add the permission we just removed back to the Staff group.
159
160 . From the list of Permission Groups, click on *Staff*.
161 . In the right pane, click on the *Group Permissions* tab.
162 . Click on the *New Mapping* button. The permission mapping dialog box will
163   appear.
164 . From the Permission drop down list, choose *CREATE_CONTAINER*.
165 . From the Depth drop down list, choose *Consortium*.
166 . Click the checkbox for *Grantable*.
167 . Click the *Add Mapping* button. The new permission will now appear in the
168   Group Permissions window.
169 . Click the *Save Changes* button.
170
171 If you have saved your changes and you don't see them, you may have to click
172 the Reload button in the upper left side of the staff client screen.
173
174 Managing role-based permission groups in the staff client
175 ---------------------------------------------------------
176
177 Main permission groups are granted in the staff client through Edit in the patron record using the Main (Profile) Permission Group field.  Additional permission
178 groups can be granted using secondary permission groups.
179
180 Secondary Group Permissions
181 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
182
183 The _Secondary Groups_ button functionality enables supplemental permission groups to be added to staff accounts. The _Secondary Groups_ button is only 
184 visible to those users who have permission to grant secondary permission groups.
185
186 In general when creating a secondary permission group do not grant the permissions to login to Evergreen.
187
188 Granting Secondary Permissions Groups
189 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
190
191
192 . Open the account of the user you wish to grant secondary permission group to.
193 . Click _Edit_.
194 . Click _Secondary Groups_, located to the right of the _Main (Profile) Permission Group_.
195 image::media/sup-permissions-1.png [Secondary Permissions Group]
196 . From the dropdown menu select one of the secondary permission groups.
197 image::media/sup-permissions-2.png [Secondary Permission Group List]
198 . Click _Add_.
199 . Click _Save_.
200 image::media/sup-permissions-3.png [Secondary Permission Group Save]
201 . Click _Save_ in the top right hand corner of the _Edit Screen_ to save the user's account.
202
203
204 Removing Secondary Group Permissions
205 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
206 . Open the account of the user you wish to remove the secondary permission group from.
207 . Click _Edit_.
208 . Click _Secondary Groups_, located to the right of the _Main (Profile) Permission Group_.
209 image::media/sup-permissions-1.png [Secondary Permissions Group]
210 . Click _Delete_ beside the permission group you would like to remove.
211 image::media/sup-permissions-4.png [Secondary Permissions Group Delete]
212 . Click _Save_.
213 image::media/sup-permissions-5.png [Secondary Permissions Group Save]
214 . Click _Save_ in the top right hand corner of the _Edit Screen_ to save the user's account.
215
216 Managing role-based permission groups in the database
217 -----------------------------------------------------
218 While the ability to assign a user to multiple permission groups has existed in
219 Evergreen for years, a staff client interface is not currently available to
220 facilitate the work of the Evergreen administrator. However, if you or members
221 of your team are comfortable working directly with the Evergreen database, you
222 can use this approach to separate the borrowing profile of your users from the
223 permissions that you grant to staff, while minimizing the amount of overlapping
224 permissions that you need to manage for a set of permission groups that would
225 otherwise multiply exponentially to represent all possible combinations of
226 staff roles.
227
228 In the following example, we create three new groups:
229
230 * a _Student_ group used to determine borrowing privileges
231 * a _Student Cataloger_ group representing a limited set of cataloging
232   permissions appropriate for students
233 * a _Student Circulator_ group representing a limited set of circulation
234   permissions appropriate for students
235
236 Then we add three new users to our system: one who needs to perform some
237 cataloging duties as a student; one who needs perform some circulation duties
238 as a student; and one who needs to perform both cataloging and circulation
239 duties. This section demonstrates how to add these permissions to the users at
240 the database level.
241
242 To create the Student group, add a new row to the _permission.grp_tree_ table
243 as a child of the _Patrons_ group:
244
245 [source,sql]
246 ------------------------------------------------------------------------------
247 INSERT INTO permission.grp_tree (name, parent, usergroup, description, application_perm)
248 SELECT 'Students', pgt.id, TRUE, 'Student borrowers', 'group_application.user.patron.student'
249 FROM permission.grp_tree pgt
250  WHERE name = 'Patrons';
251 ------------------------------------------------------------------------------
252
253 To create the Student Cataloger group, add a new row to the
254 _permission.grp_tree_ table as a child of the _Staff_ group:
255
256 [source,sql]
257 ------------------------------------------------------------------------------
258 INSERT INTO permission.grp_tree (name, parent, usergroup, description, application_perm)
259 SELECT 'Student Catalogers', pgt.id, TRUE, 'Student catalogers', 'group_application.user.staff.student_cataloger'
260 FROM permission.grp_tree pgt
261 WHERE name = 'Staff';
262 ------------------------------------------------------------------------------
263
264 To create the Student Circulator group, add a new row to the
265 _permission.grp_tree_ table as a child of the _Staff_ group:
266
267 [source,sql]
268 ------------------------------------------------------------------------------
269 INSERT INTO permission.grp_tree (name, parent, usergroup, description, application_perm)
270 SELECT 'Student Circulators', pgt.id, TRUE, 'Student circulators', 'group_application.user.staff.student_circulator'
271 FROM permission.grp_tree pgt
272 WHERE name = 'Staff';
273 ------------------------------------------------------------------------------
274
275 We want to give the Student Catalogers group the ability to work with MARC
276 records at the consortial level, so we assign the UPDATE_MARC, CREATE_MARC, and
277 IMPORT_MARC permissions at depth 0:
278
279 [source,sql]
280 ------------------------------------------------------------------------------
281 WITH pgt AS (
282   SELECT id
283   FROM permission.grp_tree
284   WHERE name = 'Student Catalogers'
285 )
286 INSERT INTO permission.grp_perm_map (grp, perm, depth)
287 SELECT pgt.id, ppl.id, 0
288 FROM permission.perm_list ppl, pgt
289 WHERE ppl.code IN ('UPDATE_MARC', 'CREATE_MARC', 'IMPORT_MARC');
290 ------------------------------------------------------------------------------
291
292 Similarly, we want to give the Student Circulators group the ability to check
293 out copies and record in-house uses at the system level, so we assign the
294 COPY_CHECKOUT and CREATE_IN_HOUSE_USE permissions at depth 1 (overriding the
295 same _Staff_ permissions that were granted only at depth 2):
296
297 [source,sql]
298 ------------------------------------------------------------------------------
299 WITH pgt AS (
300   SELECT id
301   FROM permission.grp_tree
302   WHERE name = 'Student Circulators'
303 ) INSERT INTO permission.grp_perm_map (grp, perm, depth)
304 SELECT pgt.id, ppl.id, 1
305 FROM permission.perm_list ppl, pgt
306 WHERE ppl.code IN ('COPY_CHECKOUT', 'CREATE_IN_HOUSE_USE');
307 ------------------------------------------------------------------------------
308
309 Finally, we want to add our students to the groups. The request may arrive in
310 your inbox from the library along the lines of "Please add Mint Julep as a
311 Student Cataloger, Bloody Caesar as a Student Circulator, and Grass Hopper as a
312 Student Cataloguer / Circulator; I've already created their accounts and given
313 them a work organizational unit." You can translate that into the following SQL
314 to add the users to the pertinent permission groups, adjusting for the
315 inevitable typos in the names of the users.
316
317 First, add our Student Cataloger:
318
319 [source,sql]
320 ------------------------------------------------------------------------------
321 WITH pgt AS (
322   SELECT id FROM permission.grp_tree
323   WHERE name = 'Student Catalogers'
324 )
325 INSERT INTO permission.usr_grp_map (usr, grp)
326 SELECT au.id, pgt.id
327 FROM actor.usr au, pgt
328 WHERE first_given_name = 'Mint' AND family_name = 'Julep';
329 ------------------------------------------------------------------------------
330
331 Next, add the Student Circulator:
332
333 [source,sql]
334 ------------------------------------------------------------------------------
335 WITH pgt AS (
336   SELECT id FROM permission.grp_tree
337   WHERE name = 'Student Circulators'
338 )
339 INSERT INTO permission.usr_grp_map (usr, grp)
340 SELECT au.id, pgt.id
341 FROM actor.usr au, pgt
342 WHERE first_given_name = 'Bloody' AND family_name = 'Caesar';
343 ------------------------------------------------------------------------------
344
345 Finally, add the all-powerful Student Cataloger / Student Circulator:
346
347 [source,sql]
348 ------------------------------------------------------------------------------
349  WITH pgt AS (
350   SELECT id FROM permission.grp_tree
351   WHERE name IN ('Student Catalogers', 'Student Circulators')
352 )
353 INSERT INTO permission.usr_grp_map (usr, grp)
354 SELECT au.id, pgt.id
355 FROM actor.usr au, pgt
356 WHERE first_given_name = 'Grass' AND family_name = 'Hopper';
357 ------------------------------------------------------------------------------
358
359 While adopting this role-based approach might seem labour-intensive when
360 applied to a handful of students in this example, over time it can help keep
361 the permission profiles of your system relatively simple in comparison to the
362 alternative approach of rapidly reproducing permission groups, overlapping
363 permissions, and permissions granted on a one-by-one basis to individual users.