Difference between revisions of "Drupal/C3/People-Management/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
(Created page with "'''Title:''' Drupal People Management '''Keywords: Drupal, Video tutorial, People Management, super user, adding role''' {| style="border-spacing:0;" | style="border:1pt s...")
 
 
Line 19: Line 19:
  
 
Learning Objectives
 
Learning Objectives
 
 
  
 
| style="border:1pt solid #000000;padding:0.097cm;"| In this tutorial, we will learn about
 
| style="border:1pt solid #000000;padding:0.097cm;"| In this tutorial, we will learn about
  
* People Management and
+
* '''People Management''' and
 
* Setting up specific task-based roles.
 
* Setting up specific task-based roles.
 
 
  
 
|-
 
|-
Line 33: Line 29:
  
 
System requirement
 
System requirement
 
  
  
 
| style="border:1pt solid #000000;padding:0.097cm;"| To record this tutorial, I am using
 
| style="border:1pt solid #000000;padding:0.097cm;"| To record this tutorial, I am using
  
 
+
* '''Ubuntu Linux''' Operating System
* Ubuntu Linux Operating System
+
* '''Drupal''' 8 and
* Drupal 8 and
+
* '''Firefox''' Web browser
* Firefox Web browser
+
  
 
You can use any web browser as per your choice.
 
You can use any web browser as per your choice.
Line 78: Line 72:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 00:45
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 00:45
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Through the permission structure,''' Drupal''' allows us to control what''' people''' can see and what''' people''' can do.
+
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Through the '''permission''' structure,''' Drupal''' allows us to control what''' people''' can see and what''' people''' can do.
  
 
|-
 
|-
Line 90: Line 84:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 01:00
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 01:00
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Nobody can change your permissions.
+
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Nobody can change your '''permissions'''.
  
 
|-
 
|-
Line 98: Line 92:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 01:09
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 01:09
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| '''Administrators''' are generally given permission to manage the entire site.
+
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| '''Administrators''' are generally given '''permission''' to manage the entire site.
  
  
Line 127: Line 121:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 01:51
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 01:51
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| This summer intern needs to have his/her own role, so that you can manage the permissions.
+
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| This summer intern needs to have his/her own role, so that you can manage the '''permissions'''.
  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 01:59
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 01:59
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| We will set that up shortly..
+
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| We will set that up shortly.
  
 
|-
 
|-
Line 147: Line 141:
 
* for every''' Module''' we add and
 
* for every''' Module''' we add and
 
* for every''' View''' we build.
 
* for every''' View''' we build.
 
 
  
 
|-
 
|-
Line 156: Line 148:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 02:50
 
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| 02:50
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Next, we will add a new role, give it some permissions and test it out.
+
| style="border:1pt solid #000000;padding-top:0.185cm;padding-bottom:0.185cm;padding-left:0.159cm;padding-right:0.185cm;"| Next, we will add a new role, give it some '''permissions''' and test it out.
  
 
|}
 
|}
Line 185: Line 177:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.132cm;"| 00:27
 
| style="border:1pt solid #000000;padding:0.132cm;"| 00:27
| style="border:1pt solid #000000;padding:0.132cm;"| I like to move my roles in the order of ability or permissions.
+
| style="border:1pt solid #000000;padding:0.132cm;"| I like to move my roles in the order of ability or '''permissions'''.
  
  
It just helps me to see the roles in a logical order - who has what permissions.
+
It just helps me to see the roles in a logical order - who has what '''permissions'''.
  
 
|-
 
|-
Line 195: Line 187:
  
  
Now we need to give our new role some permissions.
+
Now we need to give our new role some '''permissions'''.
  
 
|-
 
|-
Line 202: Line 194:
  
  
We can see that this page is the overview of everybody’s permissions.
+
We can see that this page is the overview of everybody’s '''permissions'''.
  
 
|-
 
|-
Line 213: Line 205:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.132cm;"| 01:00
 
| style="border:1pt solid #000000;padding:0.132cm;"| 01:00
| style="border:1pt solid #000000;padding:0.132cm;"| Now we just see the permissions for the''' Summer Intern''' and it’s a little bit easier.
+
| style="border:1pt solid #000000;padding:0.132cm;"| Now we just see the '''permissions''' for the '''Summer Intern''' and it’s a little bit easier.
  
 
|-
 
|-
Line 226: Line 218:
 
* Delete only their own events and
 
* Delete only their own events and
 
* Edit only their own events.
 
* Edit only their own events.
 
 
  
 
|-
 
|-
Line 236: Line 226:
 
* Delete revisions,
 
* Delete revisions,
 
* Edit any other events that they’ve not created.
 
* Edit any other events that they’ve not created.
 
 
  
 
|-
 
|-
Line 259: Line 247:
 
* they edit books,
 
* they edit books,
 
* they can’t even post comments without somebody approving it.
 
* they can’t even post comments without somebody approving it.
 
 
  
 
|-
 
|-
Line 270: Line 256:
  
  
We have set up the roles, added the permissions.
+
We have set up the roles, added the '''permissions'''.
  
 
|-
 
|-
Line 280: Line 266:
  
  
I’ll just say [mailto:intern@email.com intern][mailto:intern@email.com @][mailto:intern@email.com email][mailto:intern@email.com .][mailto:intern@email.com com] because we’re not going to actually email them.
+
I’ll just say '''intern@email.com''' because we’re not going to actually email them.
  
 
|-
 
|-
Line 301: Line 287:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.132cm;"| 02:46
 
| style="border:1pt solid #000000;padding:0.132cm;"| 02:46
| style="border:1pt solid #000000;padding:0.132cm;"| For now, we will turn off the''' Personal contact form.''' Because summer interns don’t need to be contacted.
+
| style="border:1pt solid #000000;padding:0.132cm;"| For now, we will turn off the''' Personal contact form.'''  
 +
 
 +
 
 +
Because summer interns don’t need to be contacted.
  
 
|-
 
|-
Line 313: Line 302:
 
* Our account is created for '''Sam''' and
 
* Our account is created for '''Sam''' and
 
* No email has been sent.
 
* No email has been sent.
 
 
  
 
|-
 
|-
Line 328: Line 315:
  
  
But the problem is - what happens if''' Sam''' was a real user and he decides to change his password.
+
But the problem is - what happens if''' Sam''' was a real user and he decides to change his '''password'''.
  
  
We can not just randomly change other people’s password when we need to test their accounts.
+
We can not just randomly change other people’s '''password''' when we need to test their '''accounts'''.
  
 
|-
 
|-
Line 346: Line 333:
  
  
We can masquerade as the''' Summer Intern''' to find out if we have set their permissions correctly.
+
We can masquerade as the''' Summer Intern''' to find out if we have set their '''permissions''' correctly.
  
 
|-
 
|-
Line 356: Line 343:
  
  
You may refer to the tutorial “Adding functionalities using Modules” for installing new modules.
+
You may refer to the tutorial '''“Adding functionalities using Modules”''' for installing new '''modules'''.
  
  
Line 366: Line 353:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.132cm;"| Screenshot  
 
| style="border:1pt solid #000000;padding:0.132cm;"| Screenshot  
| style="border:1pt solid #000000;padding:0.132cm;"| Once it is installed, you can see a new link '''Unmasquerade '''in the login area.
+
| style="border:1pt solid #000000;padding:0.132cm;"| Once it is installed, you can see a new link '''Unmasquerade '''in the '''login''' area.
  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.132cm;"| Screenshot
 
| style="border:1pt solid #000000;padding:0.132cm;"| Screenshot
| style="border:1pt solid #000000;padding:0.132cm;"| To use the '''Masquerade''', go to the '''People '''page'''.'''
+
| style="border:1pt solid #000000;padding:0.132cm;"| To use the '''Masquerade''', go to the '''People '''page.
  
  
Line 377: Line 364:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.132cm;"| 04:00
 
| style="border:1pt solid #000000;padding:0.132cm;"| 04:00
| style="border:1pt solid #000000;padding:0.132cm;"| Notice that as soon as we '''Masquerade''' as''' Sam''', the toolbars are gone.
+
| style="border:1pt solid #000000;padding:0.132cm;"| Notice that as soon as we '''Masquerade''' as''' Sam''', the '''toolbars''' are gone.
  
  
This is because the role of the user '''Sam '''does not have permissions to use administrator toolbars.
+
This is because the role of the user '''Sam '''does not have '''permissions''' to use '''administrator toolbars'''.
  
  
Line 390: Line 377:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.132cm;"| 04:20
 
| style="border:1pt solid #000000;padding:0.132cm;"| 04:20
| style="border:1pt solid #000000;padding:0.132cm;"| If we click on''' Our Drupal Manual''' and then on''' Installing Drupal''', we can’t edit. There are no tabs.
+
| style="border:1pt solid #000000;padding:0.132cm;"| If we click on''' Our Drupal Manual''' and then on''' Installing Drupal''', we can’t edit.  
 +
 
 +
 
 +
There are no tabs.
  
  
Line 397: Line 387:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.132cm;"| 04:30
 
| style="border:1pt solid #000000;padding:0.132cm;"| 04:30
| style="border:1pt solid #000000;padding:0.132cm;"| And once again we can not edit.
+
| style="border:1pt solid #000000;padding:0.132cm;"| And once again we cannot edit.
  
  
Line 408: Line 398:
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.132cm;"| 04:50
 
| style="border:1pt solid #000000;padding:0.132cm;"| 04:50
| style="border:1pt solid #000000;padding:0.132cm;"| It looks like our permissions are right.
+
| style="border:1pt solid #000000;padding:0.132cm;"| It looks like our '''permissions''' are right.
  
 
|-
 
|-
 
| style="border:1pt solid #000000;padding:0.132cm;"| screenshot
 
| style="border:1pt solid #000000;padding:0.132cm;"| screenshot
| style="border:1pt solid #000000;padding:0.132cm;"| Now go back to the administrator role by clicking on '''Unmasquerade '''link.
+
| style="border:1pt solid #000000;padding:0.132cm;"| Now go back to the '''administrator role''' by clicking on '''Unmasquerade '''link.
  
 
|}
 
|}
Line 424: Line 414:
  
 
Summary
 
Summary
 
 
 
| style="border:1pt solid #000000;padding:0.097cm;"| Let us summarize.
 
| style="border:1pt solid #000000;padding:0.097cm;"| Let us summarize.
 
  
 
In this tutorial we have learnt about
 
In this tutorial we have learnt about
  
* People Management and
+
* '''People Management''' and
 
* Adding a new user
 
* Adding a new user
 
 
  
 
|-
 
|-
Line 440: Line 425:
  
 
Acknowledgement
 
Acknowledgement
 
 
  
 
| style="border:1pt solid #000000;padding:0.097cm;"| This video is
 
| style="border:1pt solid #000000;padding:0.097cm;"| This video is
Line 447: Line 430:
 
* adapted from Acquia and OSTraining
 
* adapted from Acquia and OSTraining
 
* and revised by Spoken Tutorial Project, IIT Bombay.
 
* and revised by Spoken Tutorial Project, IIT Bombay.
 
 
  
 
|-
 
|-

Latest revision as of 12:50, 22 July 2016

Title: Drupal People Management

Keywords: Drupal, Video tutorial, People Management, super user, adding role


Visual Cue
Narration
Slide 1:

Drupal People Management

Welcome to the Spoken tutorial on Drupal People Management.
Slide 2:

Learning Objectives

In this tutorial, we will learn about
  • People Management and
  • Setting up specific task-based roles.
Slide 3:

System requirement


To record this tutorial, I am using
  • Ubuntu Linux Operating System
  • Drupal 8 and
  • Firefox Web browser

You can use any web browser as per your choice.

Time Narration
00:10 Lets learn about People management.
00:15 I have switched back to the ZIRCON theme and we will keep this theme for the rest of this tutorial.
00:20 People management is really very important.


It’s actually very complicated to get right.


We have to do it just once but correctly.

00:32 Let’s click on People.


People in Drupal are given roles that have permissions.

00:45 Through the permission structure, Drupal allows us to control what people can see and what people can do.
00:53 Now it’s important to remember a few things here.
00:57 Remember that you are user no.1 - that is the super user.
01:00 Nobody can change your permissions.
01:05 There is a user below that’s called ADMINISTRATOR.
01:09 Administrators are generally given permission to manage the entire site.


But still they are not as high as User No.1.

01:19 Authenticated Users are logged in people who have certain rights.


Lastly, Anonymous Users are visitors who are not logged in.

01:28 Usually, Anonymous Users can just view the content that’s not protected and do nothing else.
01:33 Another important thing to remember is, to set up roles that are specific to the tasks on the site.
01:42 Suppose we have a summer intern who is only allowed to update Events.


Not Articles or Pages or User Groups.

01:51 This summer intern needs to have his/her own role, so that you can manage the permissions.
01:59 We will set that up shortly.
02:02 For now, let’s click on Permissions tab.


Scroll down slowly and see what’s available.

02:10 The list gets longer and longer and longer -
  • for every Content type we add,
  • for every Module we add and
  • for every View we build.
02:45 People management in Drupal is about what people can do.
02:50 Next, we will add a new role, give it some permissions and test it out.
Time Narration
00:05 Let’s click Roles.
00:10 Let’s add a new role here called Summer Intern.
00:18 Drupal will give it a machine name, as always.


Click Save.

00:23 Now we have a new role Summer Intern, that doesn’t have any permissions yet.
00:27 I like to move my roles in the order of ability or permissions.


It just helps me to see the roles in a logical order - who has what permissions.

00:40 Let’s click Save order.


Now we need to give our new role some permissions.

00:47 Click on Permissions tab.


We can see that this page is the overview of everybody’s permissions.

00:52 Let’s go back for a second by clicking on Roles tab.


Click on Summer Intern and select Edit permissions.

01:00 Now we just see the permissions for the Summer Intern and it’s a little bit easier.
01:05 Scroll down and locate the Content type called Events - it’s about half way down for me.
01:15 Here, let’s say the Summer Intern can
  • Create new events
  • Delete only their own events and
  • Edit only their own events.
01:26 What we’re not going to allow the Summer Intern to do is -
  • Delete other people’s content,
  • Delete revisions,
  • Edit any other events that they’ve not created.
01:37 We are also not going to allow them to revert back to an old version.

We will give our editors those particular powers.

01:47 This is a pretty limited role.


Now scroll all the way down to the bottom and click Save permissions.

01:55 And notice again -
  • they can’t edit views,
  • they edit books,
  • they can’t even post comments without somebody approving it.
02:05 So, this is a very limited role.


The third step is to add a person.


We have set up the roles, added the permissions.

02:15 Now, let’s add a user and here we can give a fake email address.


It just has to be in a valid format.


I’ll just say intern@email.com because we’re not going to actually email them.

02:28 In Username, we’ll type Sam and we’ll use sam as the password also.


It is a very insecure password. But it is fine for now, as this is a local machine.

02:37 We need to change the Status to Active.


And he should have the Summer Intern role.


We can add a picture if we want to.

02:46 For now, we will turn off the Personal contact form.


Because summer interns don’t need to be contacted.

02:50 Lastly, click Create new account.
02:55 The success messages tells us that
  • Our account is created for Sam and
  • No email has been sent.
03:00 So, now on our user list, we can see Sam.


When we set up new users like this, a very important thing to do, is to test.

03:10 Let’s logout and login as Sam and test.


But the problem is - what happens if Sam was a real user and he decides to change his password.


We can not just randomly change other people’s password when we need to test their accounts.

03:23 That’s not ethical.
03:25 There is a fantastic module at drupal.org/project/masquerade.
03:31 The Masquerade module allows us to do exactly what it says - masquerade as somebody else.


We can masquerade as the Summer Intern to find out if we have set their permissions correctly.

03:43 I have already installed Masquerade module in my machine.


Please install it in your machine also.


You may refer to the tutorial “Adding functionalities using Modules” for installing new modules.


For your convenience the Masquerade module is provided in the Code Files link in the webpage of this tutorial.


Please download and install it.

Screenshot Once it is installed, you can see a new link Unmasquerade in the login area.
Screenshot To use the Masquerade, go to the People page.


Click on the Edit drop down of the user Sam and select Masquerade as.

04:00 Notice that as soon as we Masquerade as Sam, the toolbars are gone.


This is because the role of the user Sam does not have permissions to use administrator toolbars.


When we click on Add content, the only thing we are able to create is an event.


So far so good.

04:20 If we click on Our Drupal Manual and then on Installing Drupal, we can’t edit.


There are no tabs.


Same thing if we go to the Forums.

04:30 And once again we cannot edit.


We are able to leave a comment. But it won’t be automatically approved.

04:38 Once again, we can click on an event but we are not able to edit it or delete it.
04:50 It looks like our permissions are right.
screenshot Now go back to the administrator role by clicking on Unmasquerade link.
With this we come to the end of this tutorial.
Slide 5:

Summary

Let us summarize.

In this tutorial we have learnt about

  • People Management and
  • Adding a new user
Slide 6:

Acknowledgement

This video is
  • adapted from Acquia and OSTraining
  • and revised by Spoken Tutorial Project, IIT Bombay.
Slide 7:

Acknowledgement


The video at this link summarises the Spoken Tutorial project.


Pls download and watch it.

Slide 8:

Spoken Tutorial Workshops


The Spoken Tutorial Project Team conducts workshops and gives certificates.


For more details, please write to us.

Slide 9:

Acknowledgement


Spoken Tutorial Project is funded by
  • NMEICT, Ministry of Human Resource Development and
  • NVLI, Ministry of Culture

Government of India.

This is Ameesha Bhorkhade signing off.


Thanks for joining.

Contributors and Content Editors

Nancyvarkey, Priyacst