Actions

Manage users: Difference between revisions

From LimeSurvey Manual

No edit summary
(Marked this version for translation)
(126 intermediate revisions by 15 users not shown)
Line 1: Line 1:
<languages />
<translate>
<!--T:1-->
__TOC__
= User management= <!--T:2-->
<!--T:76-->
The user management tool allows you to add additional administration users to LimeSurvey. We will just call them  'users' in this chapter. Do not confuse them with [[Survey participants|survey participants]] (respondents).


<div class="simplebox">'''Note:''' This aritcle is currently being updated/re-translated form the german version. Please remain from editing this page unless this banner is removed.


Thank you! vierundzwanzig</div>
==Create users== <!--T:3-->


__TOC__
<!--T:4-->
To create a new user, open the user management dialog by clicking on '''Configuration''' (located on the main LimeSurvey toolbar) -> '''Manage survey administrators''' as shown below.
 
 
<!--T:61-->
<center>[[File:LimeSurveyBenuzerVerwaltung.jpg]]</center>


==Create users==


To create a new user you please open the user-management ('''main menu''' -> '''Create/Edit users ''' [[File:LimeSurveyBenuzerVerwaltung.jpg]]).
<!--T:77-->
Then, click on '''Add user''' located in the upper right area of '''User control''' table. A window will show up asking you to:


[[File:LimeSurveyBenutzerHinzufuegen.jpg]]
<!--T:5-->
* Enter the desired username into the textfield '''Username'''.
* Enter the desired username into the '''Username''' text field.
* Enter the email adress into the textfield  '''Email'''. Please note
* Enter the email address into the '''Email''' text field. Please note that:
** If you don't want the user to recieve the confirmation e-mail with a link to the LimeSurvey installation, username and password you can use your own email adress to send the confirmation email to you. After that you can change the email adress to the adress of the user.
** LimeSurvey sends out a confirmation email to the address entered into the '''Email''' field. This email address will be used as the standard contact email address for surveys created by the respective user.
** LimeSurvey sends out a confirmation e-mail to the adress enterd into '''Email'''. This email adress will be used as standard contact email adress for surveys created by this user.
** If you don't want the user to receive the confirmation email with a link to the LimeSurvey application, username, and password, you can use your own email address to send the confirmation email to you. After that, you can change the email address to the address of the user.
* Enter the users full name into the textfield '''Full name''' . Please note
* Enter user's full name into the '''Full name''' text field. Please note that the full name entered here will be used as the standard contact person name for surveys created by the respective user.
** The full name entered here will be used as standard contact person name for surveys created by this user.
* Click '''Save''' to create the new user.
* Click '''Add user'''


So you created a new user. You will find out more about setting user permissions if you continue reading further.


==Edit users==
<!--T:78-->
<center>[[File:LimeSurveyAddUser.jpg]]</center>


You can use the pen symbol [[File:LimeSurveyBleistiftSymbol.jpg]] to edit a user.


You can set a new email adress, full name and even change the password. If you have finished what you want to do click '''Save'''.
<!--T:6-->
You have now created your first user. To find out more about [[Manage users#Set global permissions for a user|setting user permissions]], please read on.


==Delete users==


To delete a user account simply click the delete button [[File:LimeSurveyBenutzerLoeschen.jpg]] in the line with the user account that should be deleted and hit '''OK'''.
<!--T:79-->
<center>[[File:LimeSurveyBleistiftSymbol.jpg]]</center>


=Global permissions=


Global permissions apply to the whole LimeSurvey installation. If you want to set a permission only for a specific survey you can use the Survey permissions settings.
<!--T:80-->
As you can see below, there are four options under the '''Action''' column that allow you to:


==Set global permissions for a user==


To set global permissions for a user just click the key symbol [[File:LimeSurveySchluesselSymbol.jpg]].
<!--T:93-->
<center>[[File:Edit users.png]]</center>


[[File:LimeSurveySetzeGlobalBer.jpg]]


You can now add or remove the following permissions.
<!--T:81-->
* '''SuperAdministrator''': This permission can only be added or removed by the  Diese Berechtigung user called '''admin''' and grants full rights to the whole LimeSurvey installation. '''Please note:''' This permission is very powerful and you should be very carfefully with granting this permission/right.
*edit the general aspects of a user - by clicking the pen symbol.
* '''Create survey''': This permission lets the user create a survey as well as start, stop and it . This is the standard permission for people creating their own surveys.
*delete the user from the survey administrators database - by clicking the wastebin button.
* '''Configurator''': With this permission a user can check data integrity, save the SQL database to an sql file and view the php info in the global settings.
*set global permissions for a user - by clicking the lock symbol.
* '''Create user''': Having this permission a user can create new users and delete users created with this account. The newly created users cannot have higher permissions than the parent. If this has to be done a '''SuperAdministrator''' has to grant the permissions.
*set theme permissions for a user - by clicking the pen-and-lock symbol.
* '''Use all/manage templates''': It allows the user to use all design templates and edit all non standard templates. A person with this permission should have sufficient knowledge in terms of  HTML/php, Javascript and CSS. If a user not familar with this things should use a specific design template it would be better to use the template permissions.
* '''Manage labels''': This permission grants all rights regarding label sets (create, edit and delete).


The most important use cases for granting user permissions are collected at the '''use cases''' part of this article.
==Edit user== <!--T:7-->


==Vorlagenberechtigungen f&uuml;r einen Benutzer setzen==
<!--T:8-->
You can use the pen symbol to edit a user.


Mit den Vorlagenberechtigungen kann festgelegt werden welche Design-Vorlagen der Nutzer beim Erstellen oder Bearbeiten einer Umfrage ausw&auml;hlen/verwenden kann. Es ist sinnvoll jene Auswahl einzuschr&auml;nken um den Benutzer nicht zu &uuml;berfordern und zu verhindern dass ungewollt Design-Vorlagen verwendet werden die nicht verwendet werden sollen.
<!--T:9-->
You can set a new email address, full name, and even change his or her password. If you have finished what you want to do, click on the '''Save''' button (right upper part of the window).


'''Wichtig:''' Wenn es f&uuml;r bestimmte Benutzer-Gruppen oder Kunden eigene Design-Vorlagen gibt sollten wenn m&ouml;glich auch nur jene auf verf&uuml;gbar gestellt werden.


Zum Setzen der Vorlagenberechtigungen einfach auf das Schl&uuml;ssel-Symbol f&uuml;r die Design-Vorlagen
==Delete user== <!--T:82-->


[[File:LimeSurveySchluesselSymbolTemplates.jpg]] klicken.
<!--T:11-->
To delete a user account, simply click on his or her corresponding wastebin button (located on the same line as the user account you want to delete) and click '''OK'''.


[[File:LimeSurveyAuswahlDesignTemplatesLS.jpg]]
==Set global permissions for a user== <!--T:14-->


Nun k&ouml;nnen die gew&uuml;nschten Design-Vorlagen die der Benutzer verwenden k&ouml;nnen soll ausgew&auml;hlt werden. Am Ende werden die Einstellungen mit einem Klick auf '''Speichern''' best&auml;tigt.
<!--T:83-->
{{Alert|Global permissions apply to the whole LimeSurvey application. If you want to set permissions only for a specific survey, you can use the [[Manage users#Setting permissions for a single survey|survey permissions settings]].}}


Unter dem Punkt '''Anwendungsf&auml;lle''' werden die h&auml;ufigsten Standardf&auml;lle f&uuml;r neue Nutzer aufgelistet.
<!--T:15-->
To set global permissions for a user, click on the lock symbol.


=Berechtigungen nur f&uuml;r eine einzelne Umfrage=


Diese Berechtigungen gelten nur f&uuml;r eine einzelne Umfrage. Sollen einem Benutzer Berechtigungen f&uuml;r das ganze System &uuml;bergeben werden m&uuml;ssen die globalen Berechtigungen verwendet werden.
<!--T:16-->
<center>[[File:User_global_permission.png]]</center>


'''Wichtig:''' Auch f&uuml;r Berechtigungen f&uuml;r einzelne Umfragen muss ein Benutzer-Account vorhanden sein bzw. angelegt werden wenn er es noch nicht sein sollte. Der Benutzer muss jedoch keine globale Berechtigung besitzen, es reicht wenn er nur existiert.


==Benutzer-Berechtigungen f&uuml;r eine Umfrage &auml;ndern==
<!--T:65-->
The CRUD (create, read, update, and delete) system is employed (like in the [[Manage users#Setting permissions for a single survey|survey permission settings]]). To fine-tune user permissions, we strongly recommend to extend the matrix using the double-right arrowhead, which is located in its upper right corner. If you check the first box, all the CRUD permissions in that row are automatically checked.


Um die Berechtigungen f&uuml;r eine einzelne Umfrage zu setzen w&auml;hlt man im Men&uuml; '''Umfragen-Einstellungen''' den Men&uuml;punkt '''Umfrageberechtigungen''' aus.
<!--T:63-->
<center>[[File:User_global_permission_complete.png]]</center>


[[File:LimeSurveyUmfragenBerechtigungen.jpg]]
<!--T:17-->
You can now add or remove the following permissions:


Im n&auml;chsten Schritt wird der Benutzer ausgew&auml;hlt dem die Berechtigung gesetzt werden soll und auf '''Benutzer hinzuf&uuml;gen''' geklickt.
<!--T:73-->
* '''Participant panel''': For more details, continue reading about the [[Central Participant Database|central participant database here]].


[[File:LimeSurveyBenBerHinz.jpg]]
<!--T:72-->
* '''Label sets''': Permission to create, view, update, delete, export, and import label sets. The label sets don't have specific permissions (unlike themes).


Nach einem Klick auf '''Bearbeite Umfrageberechtigungen''' wird die Benutzerberechtigungsmatrix f&uuml;r die Umfrage angezeigt.
<!--T:68-->
* '''Settings & Plugins''': With this permission a user can check data integrity, save the SQL database to an .sql file, manage global settings, view the PHP info in the global settings, and manage all plugins.


[[File:LimeSurveyBenutzerBerechtigungMatrix.jpg]]
<!--T:67-->
* '''Surveys''': Gives access to all surveys. To allow a user to only create and manage their own survey, give the user the 'create' permission. A creator of a survey is the owner of the survey and will always be able to manage it. Remember that each survey can grant different permissions .  
{{Note|'''The global permission is applied before the survey-specific permission!'''}}


In dieser Matrix k&ouml;nnen die Berechtigungen f&uuml;r die einzelnen Bereiche festgelegt werden. Durch einen Klick in die Checkbox in der ersten Spalte nach den Bereichsbezeichnungen k&ouml;nnen alle Berechtigungen f&uuml;r einen Bereich ausgew&auml;hlt werden. In den weiteren Spalten k&ouml;nnen wenn ben&ouml;tigt die einzelnen Berechtigungen hinzugef&uuml;gt oder entfernt werden falls nicht alle Berechtigungen ausgew&auml;hlt/m&ouml;glich sein sollen. Nach einem Klick auf '''Speichern''' werden die &Auml;nderungen &uuml;bernommen.
<!--T:71-->
* '''Themes''': It allows the user to use all the available design themes and edit all non-standard themes. A person with this right should have sufficient knowledge in terms of HTML, Javascript, and CSS. If a user is not familiar with these things and is supposed to use a specific design themes, it would be better to only give him 'read' permission. Each theme can have specific permissions.


Unter dem Punkt '''Anwendungsf&auml;lle''' werden die h&auml;ufigsten Standardf&auml;lle f&uuml;r neue Nutzer aufgelistet.
<!--T:70-->
* '''User groups''': This permission allows a user to create/view/update/delete user groups.


=Anwendungsf&auml;lle=
<!--T:69-->
* '''Users''': A user can create, modify, and delete his own administration users with this permission. The newly created users cannot have higher permissions than the parent user. You will also not be able to edit users owned by other administration users. If this has to be done, then a Superadministrator permission has to be granted.


Hier wird f&uuml;r die h&auml;ufigsten Anwendungsf&auml;lle und Vorkommnisse festgehalten welche Berechtigungen in diesem Fall gesetzt werden sollten.
<!--T:66-->
* '''Superadministrator''': This permissions can only be added by other Superadministrator with this setting as update and grants full permission to the whole LimeSurvey application.
{{Alert|title=Warning|text=This permissions is very powerful and you should be very careful with granting it.}}


==Neuer Betreuer der LimeSurvey-Software kommt hinzu==
<!--T:84-->
* Login &uuml;ber den '''admin'''-Account
*'''Use internal database authentication''': This permission allows users to access LimeSurvey's panel via the authentication page (e.g. ''http://domain/admin/authentication/sa/login''). If it is unchecked and the respective user tries to connect to LimeSuvey's panel, he will get the following error: 'Internal database authentication method is not allowed for this user'.
* Erstellen eines Benutzeraccounts f&uuml;r den Benutzer
* Setzen der globalen Berechtigung '''Super-Administrator'''
* nicht n&ouml;tig: Setzen der Vorlagen-Berechtigungen (hat '''Super-Administrator''' eh alle)
* nicht n&ouml;tig: Setzen der Umfrage-Berechtigungen ('''Super-Administrator''' hat eh alle Berechtigungen f&uuml;r alle Umfragen)


==Neuer Benutzer m&ouml;chte Umfragen selbst erstellen==
<!--T:95-->
* Login &uuml;ber den '''admin'''-Account oder mit einem Account der '''Super-Administrator'''-Rechte hat
{{Note|All the permissions mentioned above that belong to the [[Optional_settings#Security|forced super administrator]] cannot be removed via the GUI.}}
* Erstellen eines Benutzeraccounts f&uuml;r den Benutzer
* Setzen der globalen Berechtigung '''Erstelle Umfrage'''
* Setzen der Vorlagen-Berechtigungen nach Herkunft/Gruppe des Benutzers/Kunden
* nicht n&ouml;tig: Setzen der Umfrage-Berechtigungen (Benutzer hat f&uuml;r die Umfragen die er erstellt eh alle Berechtigungen)


==Ersteller braucht weiteren Benutzer der seine Umfrage bearbeiten darf==
* Login &uuml;ber den '''admin'''-Account oder mit einem Account der '''Super-Administrator'''-Rechte hat
* Erstellen eines Benutzeraccounts f&uuml;r den Benutzer
* Setzen der globalen Berechtigung: '''keine'''
* Setzen der Vorlagen-Berechtigungen: '''keine'''
* Setzen der Umfrage-Berechtigungen: Nach Wunsch des Besitzers der Umfrage und wie viel Macht der Benutzer haben darf/soll. Wenn gleiche Rechte f&uuml;r Umfrage wie der Besitzer ausgew&auml;hlt werden soll f&uuml;r alle Bereiche alle Berechtigungen ausw&auml;hlen (Klick auf die Checkboxen in der ersten Spalte nach den Bereichsbezeichnungen)


==Verantwortlicher m&ouml;chte die Ergebnisse einer beauftragten Umfrage einsehen und exportieren==
==Set theme permissions for a user== <!--T:19-->
* Login &uuml;ber den '''admin'''-Account oder mit einem Account der '''Super-Administrator'''-Rechte hat
* Erstellen eines Benutzeraccounts f&uuml;r den Benutzer
* Setzen der globalen Berechtigung: '''keine'''
* Setzen der Vorlagen-Berechtigungen: '''keine'''
* Setzen der Umfrage-Berechtigungen: '''Antworten''': Darf '''Anzeigen''' und '''Export''' , '''Statistiken''': Darf '''Anzeigen'''


[[File:LimeSurveyKundeEigeneAuswertung.jpg]]
<!--T:20-->
With theme permissions, you can decide which design themes a user can select when creating or editing a survey. It might be a good idea to restrict the design themes a user can select in order to prevent unwanted use of design themes, which you might consider to not be suitable for a survey/questionnaire.


----
<!--T:21-->
For example, if you have a specific design themes for a group of users or customers, you might want to restrict their access to other themes to only make them use the themes created for their purpose.


Artikel wurde mit Einverst&auml;ndniserkl&auml;rung von '''vierundzwanzig''' aus dem Firmen-Wiki der 24/7 IT-SERVICES GmbH &uuml;bernommen.
<!--T:22-->
To set or edit the themes permissions for a user, simply click the pen-and-lock symbol for design themes:


----


----
<!--T:23-->
<center>[[File:LimeSurveySetDesignTemplatesLS.jpg]]</center>


To be moved somewhere else once better defined:


There are several classes of possible people who access a LimeSurvey installation.  But only one set of people is actually termed a '''user''' in the code and documentation.  So lets understand what these classes of people are so we can better understand the terminology of the program.
<!--T:24-->
Select the design themes to which the respective user or user groups should have access. After you finished your selection or deselection, do not forget to hit the '''Save''' button: [[File:Save.png|0.75px]].


{|
<!--T:25-->
|Class||Description
To get a proper understanding of this function, check [[Manage users#Examples|the examples provided below]].
|-
|Installation Administrator || Those people who create login user accounts to allow others to create, edit, activate and/or view surveys and their results.  Often can be given access to edit the templates, labelsets and other key features independent of any particular survey stored.
|-
|Survey Administrator || A person with a login account that is given some management access to a particular survey.  Each survey can have its own set of users with specific rights to manipulate the survey.  These rights can be as broad as to activate a survey and possibly edit its question base.  They can be as minimum as simply able to review the results to date.
|-
|Participant || Those people who simply respond or participate in taking a survey.  They may or may not have token access.  They do not need a login account to the administrative interface and thus are not termed users.
|-
|Installer || A special class of person who has access to the MySQL (or similar) database server and possibly the command line interface of the computers operating system in order to install and configure the survey software.  This person is asked to setup the initial SuperAdmin user account from which other user login accounts can be created.
|-
|Developer || An very special class of person who has access to the source code and can manipulate it to change the programs behavior.  Generally only done with versions of the survey that are not available for live, active surveys.
|}


=Use one time passwords=
=Use one-time passwords= <!--T:51-->


Since version 1.81 a user can call the limesurvey login at /limesurvey/admin and pass username and a one time password which was previously written into the users table (column one_time_pw) by an external application.
<!--T:52-->
A user can call the LimeSurvey login at /limesurvey/admin and enter a username and a one-time password (which was previously written into the users table - ''column one_time_pw'' - by an external application).


To enable this login method [http://docs.limesurvey.org/tiki-index.php?page=Optional+settings#Use_one_time_passwords a setting has to be turned on] ($use_one_time_passwords = true;) in config.php.
<!--T:53-->
To enable this login method, the line [[Optional settings#Use_one_time_passwords|<code>$use_one_time_passwords = false;</code>]] has to be set 'true' in config.php (it is 'false' by default) .  


<!--T:54-->
The URL has to contain the following variables:
The URL has to contain the following variables:
* '''user:''' The username normally used to login into Limesurvey. This username has to exist in the 'users' table of the database.
* '''user:''' The username normally used to login into LimeSurvey. This username has to exist in the 'users' table of the database.
* '''onepass:''' The plain text password which is then compared to the password in the 'users' table
* '''onepass:''' The plain text password which is then compared to the password in the 'users' table


A valid URL to login using a one time password will look like this:
<!--T:55-->
A valid URL to login using a one-time password will look like this:
 
<!--T:59-->
<div class="simplebox">http://www.yourdomain.org/limesurvey/index.php/admin/authentication/login?user=myusername&onepass=secretpassword</div>


<div class="simplebox">http://www.yourdomain.org/limesurvey/admin/admin.php?user=myusername&onepass;=secretpassword</div>
<!--T:94-->
<div class='simplebox'> [[File:help.png]] The 'secretpassword' field is plain text, not MD5 code.</div>


<!--T:60-->
'''Things to watch out for:'''
'''Things to watch out for:'''
* One time passwords have to be enabled by setting $use_one_time_passwords = true; in config.php
* To enable this login method, the line [[Optional settings#Use_one_time_passwords|<code>$use_one_time_passwords = false;</code>]] has to be set <code>true</code> in config.php (it is 'false' by default).
* The passed username has to exist in Limesurvey's ''users'' table
* The passed username has to exist in LimeSurvey's ''users table''.
* The one time password, which can be set by an external application, has to be stored as [http://de.php.net/md5 MD5 hash] in column ''one_time_pw'' of table ''users''
* The one-time password (which can be set via an external application) has to be stored as [https://secure.php.net/manual/en/function.md5.php MD5 hash] in column ''one_time_pw'' of table ''users''.
* The passed plain text password will be hashed using md5() function and will then be compared to the stored hash in column ''one_time_pw'' of table ''users''. Both passwords have to match.
* (This should be ignored except "Both passwords have to match") The passed plain text password will be hashed using the sha256 function and will then be compared to the stored hash in column ''one_time_pw'' of table ''users''. Both passwords have to match.
* After the first login with the one time password this password is deleted from the database. The user won't be able to login with this password anymore. If you are confronted with session timeout problems [http://docs.limesurvey.org/tiki-index.php?page=Optional+settings#Survey_Behavior raise the setting for $sessionlifetime] (default is 3600 seconds).
* After the first login with the one-time password, it gets deleted from the database. The user won't be able to log in anymore with that respective password a second time.
* My local LS system can't test the permissions with different accounts (my email password does not have a way to be connected).
 
=Set permissions for a single survey= <!--T:26-->
 
<!--T:27-->
These permissions only apply for a single survey. If you want to set permissions for the whole system, you can use [[Manage users#Set global permissions for a user|global permissions]].
These permissions can be offered either to a single user or to a user group.
 
 
<!--T:28-->
{{Alert|title=Attention|text=An existing user account is required to set permissions for a single survey. If the account doesn't exist, you have to create it first and then change the survey permissions. The same applies to offering survey permissions to a user group. Besides the necessity to have one created, you also need to add at least one user to that group in order to be able to select it and grant it survey permissions.}}
 
 
<!--T:96-->
{{Note| By default, an user (non-admin) cannot grant survey permissions to users that are not part of the same group as the survey administrator. This is a security option enabled by '''default''' in LimeSurvey. To change this, you need to deactivate option [[Global_settings#Security|Group member can only see own group]], located in the '''Global settings''', under the '''Security tab'''. However, if you feel unsure about disabling this option, you can create groups containing those users that can be seen and be granted survey permissions by a survey creator.}}
 
 
<!--T:30-->
To change the survey permissions, you have to select the '''Settings''' sidebar of your survey. Then, click on '''Survey permissions''' and choose to whom would you like to offer permissions. The rights can be offered either separately to specific users or to a user group.
 
 
<!--T:31-->
<center>[[File:LimeSurveySurveyPermissions.jpg]]</center>
 
 
<!--T:85-->
<center>[[File:LimeSurveySurveyPermissionsRights.png]]</center>
 
 
==Grant survey permissions to a user== <!--T:29-->
 
<!--T:32-->
In the next step, select the user that will receive survey rights and click '''Add user'''.
 
 
<!--T:33-->
<center>[[File:LimeSurveyAddSurveyPermission.jpg]]</center>
 
 
<!--T:34-->
After you click '''Set survey permissions''', the user's survey permissions matrix will be shown.
 
<!--T:35-->
<center>[[File:LimeSurveyUserPermissionMatrix.jpg]]</center>
 
<!--T:36-->
You can set in this matrix the user's survey permissions. Checking a box grants survey permissions to the respective user. If you click on a checkbox from the first column, all the rights of the corresponding line will be selected/removed.
 
<!--T:37-->
Click on the double-right arrowhead to access the extended version of the matrix to choose specifically the actions that can be performed by a user.
After you finished editing the survey permissions, click on the '''Save''' button, which is located in the upper right corner of the screen.
 
<!--T:39-->
Some examples are provided [[Manage_users#Examples|below]] in order to help you get a better understanding of Limesurvey's survey permissions system.
 
==Grant survey permissions to a user group== <!--T:86-->
 
<!--T:87-->
Click on add a user group and select the user group to which you would like to add the permission rights.
 
<!--T:88-->
<center>[[File:LimeSurveyPermissionRightsUserGroup.png]]</center>
 
<!--T:89-->
In the next step,  select  the permissions that you will allocate to the members of that user group. Do not forget to click on the double right arrowhead to get an extended view of the permissions matrix.
 
 
<!--T:90-->
<center>[[File:UserGroupSurveyPermissions.png]]</center>
 
 
<!--T:38-->
After you finished editing the survey permissions, click on the '''Save''' button, which is located in the upper right part of the screen.
 
<!--T:91-->
Some examples are provided [[Manage_users#Examples|below]] in order to help you get a better understanding of the Limesurvey's survey permissions system.
 
<!--T:92-->
{{Note|[[Manage user groups|The user group function]] is still experimental. Use our [https://bugs.limesurvey.org/ bugs tracker] to describe any kind of inconsistencies.}}
 
=Examples= <!--T:40-->
 
<!--T:41-->
Different scenarios are presented below. They provide some advice about which rights are necessary for some specific tasks and how they can be granted to the users.
 
 
==I want to add a new person in charge for administrating LimeSurvey== <!--T:42-->
* Log in as '''admin'''.
* Create a new user account.
* Grant that user the '''Superadministrator''' permission.
* ''Not necessary'' : Setting the theme permissions ('''Superadministrator''' has all permissions for all themes).
* ''Not necessary'' : Setting the survey permissions ('''Superadministrator''' has all permissions for all surveys).
 
 
==A new user wants to create his/her own surveys== <!--T:43-->
* Log in as '''admin''' (or as a user that has the '''Superadministrator''' permission).
* Create a new user account.
* Set global permissions for that user to '''Create survey'''.
* ''Optional'' : Set theme permissions - select which theme(s) should be used by the user/user group.
 
==The creator of a survey needs another person to edit his/her survey== <!--T:44-->
* Log in as '''admin''' (or as a user that has the '''Superadministrator''' permission).
* Create a new user account.
* Set '''no global permissions''' for user.
* Set '''no theme permissions''' for user.
* Set the survey permissions the way you want. If he/she should receive all the survey permissions, you can check the first box from each row. Otherwise, click on the double-right arrowhead to see the expanded matrix (upper right corner) and select only those rights you believe the respective user should have.
 
 
==A person responsible for the survey wants to see the results of the survey and export them== <!--T:45-->
* Log in as '''admin''' (or as a user that has the '''Superadministrator''' permission).
* Create a new user account.
* Set '''no global permissions''' for user.
* Set '''no theme permissions''' for user.
* Set survey permissions to: '''Responses''' -> '''View/read''' and '''export''', and '''Statistics''': '''View/read'''.
 
 
<!--T:46-->
<center>[[File:LimeSurveyCusomerOwnStatistics.jpg]]</center>
 
==I need help from two interns that can help me with the translation of my survey== <!--T:47-->
* Log in as ''admin'' (or as a user that has the ''Superadministrator'' permission).
* Create ''n'' user accounts (where n is the number of translators).
* Create a user group called ''Translators'' and add the ''n'' accounts to this group.
* Go to the '''Survey permissions''' and click on '''Add a user group'''.
* If they only do translations, then offer them the '''Quick translation''' permission.
 
<!--T:49-->
{{Note|Check our [[LimeSurvey Users|wiki section on users]] and their classification as it can be found in the code and documentation.}}
</translate>

Revision as of 15:48, 8 November 2018

User management

The user management tool allows you to add additional administration users to LimeSurvey. We will just call them 'users' in this chapter. Do not confuse them with survey participants (respondents).


Create users

To create a new user, open the user management dialog by clicking on Configuration (located on the main LimeSurvey toolbar) -> Manage survey administrators as shown below.


File:LimeSurveyBenuzerVerwaltung.jpg


Then, click on Add user located in the upper right area of User control table. A window will show up asking you to:

  • Enter the desired username into the Username text field.
  • Enter the email address into the Email text field. Please note that:
    • LimeSurvey sends out a confirmation email to the address entered into the Email field. This email address will be used as the standard contact email address for surveys created by the respective user.
    • If you don't want the user to receive the confirmation email with a link to the LimeSurvey application, username, and password, you can use your own email address to send the confirmation email to you. After that, you can change the email address to the address of the user.
  • Enter user's full name into the Full name text field. Please note that the full name entered here will be used as the standard contact person name for surveys created by the respective user.
  • Click Save to create the new user.



You have now created your first user. To find out more about setting user permissions, please read on.



As you can see below, there are four options under the Action column that allow you to:



  • edit the general aspects of a user - by clicking the pen symbol.
  • delete the user from the survey administrators database - by clicking the wastebin button.
  • set global permissions for a user - by clicking the lock symbol.
  • set theme permissions for a user - by clicking the pen-and-lock symbol.

Edit user

You can use the pen symbol to edit a user.

You can set a new email address, full name, and even change his or her password. If you have finished what you want to do, click on the Save button (right upper part of the window).


Delete user

To delete a user account, simply click on his or her corresponding wastebin button (located on the same line as the user account you want to delete) and click OK.

Set global permissions for a user

  Global permissions apply to the whole LimeSurvey application. If you want to set permissions only for a specific survey, you can use the survey permissions settings.


To set global permissions for a user, click on the lock symbol.



The CRUD (create, read, update, and delete) system is employed (like in the survey permission settings). To fine-tune user permissions, we strongly recommend to extend the matrix using the double-right arrowhead, which is located in its upper right corner. If you check the first box, all the CRUD permissions in that row are automatically checked.

You can now add or remove the following permissions:

  • Label sets: Permission to create, view, update, delete, export, and import label sets. The label sets don't have specific permissions (unlike themes).
  • Settings & Plugins: With this permission a user can check data integrity, save the SQL database to an .sql file, manage global settings, view the PHP info in the global settings, and manage all plugins.
  • Surveys: Gives access to all surveys. To allow a user to only create and manage their own survey, give the user the 'create' permission. A creator of a survey is the owner of the survey and will always be able to manage it. Remember that each survey can grant different permissions .
The global permission is applied before the survey-specific permission!
  • Themes: It allows the user to use all the available design themes and edit all non-standard themes. A person with this right should have sufficient knowledge in terms of HTML, Javascript, and CSS. If a user is not familiar with these things and is supposed to use a specific design themes, it would be better to only give him 'read' permission. Each theme can have specific permissions.
  • User groups: This permission allows a user to create/view/update/delete user groups.
  • Users: A user can create, modify, and delete his own administration users with this permission. The newly created users cannot have higher permissions than the parent user. You will also not be able to edit users owned by other administration users. If this has to be done, then a Superadministrator permission has to be granted.
  • Superadministrator: This permissions can only be added by other Superadministrator with this setting as update and grants full permission to the whole LimeSurvey application.
  Warning : This permissions is very powerful and you should be very careful with granting it.


  • Use internal database authentication: This permission allows users to access LimeSurvey's panel via the authentication page (e.g. http://domain/admin/authentication/sa/login). If it is unchecked and the respective user tries to connect to LimeSuvey's panel, he will get the following error: 'Internal database authentication method is not allowed for this user'.
All the permissions mentioned above that belong to the forced super administrator cannot be removed via the GUI.


Set theme permissions for a user

With theme permissions, you can decide which design themes a user can select when creating or editing a survey. It might be a good idea to restrict the design themes a user can select in order to prevent unwanted use of design themes, which you might consider to not be suitable for a survey/questionnaire.

For example, if you have a specific design themes for a group of users or customers, you might want to restrict their access to other themes to only make them use the themes created for their purpose.

To set or edit the themes permissions for a user, simply click the pen-and-lock symbol for design themes:



Select the design themes to which the respective user or user groups should have access. After you finished your selection or deselection, do not forget to hit the Save button: 0.75px.

To get a proper understanding of this function, check the examples provided below.

Use one-time passwords

A user can call the LimeSurvey login at /limesurvey/admin and enter a username and a one-time password (which was previously written into the users table - column one_time_pw - by an external application).

To enable this login method, the line $use_one_time_passwords = false; has to be set 'true' in config.php (it is 'false' by default) .

The URL has to contain the following variables:

  • user: The username normally used to login into LimeSurvey. This username has to exist in the 'users' table of the database.
  • onepass: The plain text password which is then compared to the password in the 'users' table

A valid URL to login using a one-time password will look like this:

The 'secretpassword' field is plain text, not MD5 code.

Things to watch out for:

  • To enable this login method, the line $use_one_time_passwords = false; has to be set true in config.php (it is 'false' by default).
  • The passed username has to exist in LimeSurvey's users table.
  • The one-time password (which can be set via an external application) has to be stored as MD5 hash in column one_time_pw of table users.
  • (This should be ignored except "Both passwords have to match") The passed plain text password will be hashed using the sha256 function and will then be compared to the stored hash in column one_time_pw of table users. Both passwords have to match.
  • After the first login with the one-time password, it gets deleted from the database. The user won't be able to log in anymore with that respective password a second time.
  • My local LS system can't test the permissions with different accounts (my email password does not have a way to be connected).

Set permissions for a single survey

These permissions only apply for a single survey. If you want to set permissions for the whole system, you can use global permissions. These permissions can be offered either to a single user or to a user group.


  Attention : An existing user account is required to set permissions for a single survey. If the account doesn't exist, you have to create it first and then change the survey permissions. The same applies to offering survey permissions to a user group. Besides the necessity to have one created, you also need to add at least one user to that group in order to be able to select it and grant it survey permissions.



By default, an user (non-admin) cannot grant survey permissions to users that are not part of the same group as the survey administrator. This is a security option enabled by default in LimeSurvey. To change this, you need to deactivate option Group member can only see own group, located in the Global settings, under the Security tab. However, if you feel unsure about disabling this option, you can create groups containing those users that can be seen and be granted survey permissions by a survey creator.


To change the survey permissions, you have to select the Settings sidebar of your survey. Then, click on Survey permissions and choose to whom would you like to offer permissions. The rights can be offered either separately to specific users or to a user group.




Grant survey permissions to a user

In the next step, select the user that will receive survey rights and click Add user.



After you click Set survey permissions, the user's survey permissions matrix will be shown.

You can set in this matrix the user's survey permissions. Checking a box grants survey permissions to the respective user. If you click on a checkbox from the first column, all the rights of the corresponding line will be selected/removed.

Click on the double-right arrowhead to access the extended version of the matrix to choose specifically the actions that can be performed by a user. After you finished editing the survey permissions, click on the Save button, which is located in the upper right corner of the screen.

Some examples are provided below in order to help you get a better understanding of Limesurvey's survey permissions system.

Grant survey permissions to a user group

Click on add a user group and select the user group to which you would like to add the permission rights.

In the next step, select the permissions that you will allocate to the members of that user group. Do not forget to click on the double right arrowhead to get an extended view of the permissions matrix.



After you finished editing the survey permissions, click on the Save button, which is located in the upper right part of the screen.

Some examples are provided below in order to help you get a better understanding of the Limesurvey's survey permissions system.

The user group function is still experimental. Use our bugs tracker to describe any kind of inconsistencies.

Examples

Different scenarios are presented below. They provide some advice about which rights are necessary for some specific tasks and how they can be granted to the users.


I want to add a new person in charge for administrating LimeSurvey

  • Log in as admin.
  • Create a new user account.
  • Grant that user the Superadministrator permission.
  • Not necessary : Setting the theme permissions (Superadministrator has all permissions for all themes).
  • Not necessary : Setting the survey permissions (Superadministrator has all permissions for all surveys).


A new user wants to create his/her own surveys

  • Log in as admin (or as a user that has the Superadministrator permission).
  • Create a new user account.
  • Set global permissions for that user to Create survey.
  • Optional : Set theme permissions - select which theme(s) should be used by the user/user group.

The creator of a survey needs another person to edit his/her survey

  • Log in as admin (or as a user that has the Superadministrator permission).
  • Create a new user account.
  • Set no global permissions for user.
  • Set no theme permissions for user.
  • Set the survey permissions the way you want. If he/she should receive all the survey permissions, you can check the first box from each row. Otherwise, click on the double-right arrowhead to see the expanded matrix (upper right corner) and select only those rights you believe the respective user should have.


A person responsible for the survey wants to see the results of the survey and export them

  • Log in as admin (or as a user that has the Superadministrator permission).
  • Create a new user account.
  • Set no global permissions for user.
  • Set no theme permissions for user.
  • Set survey permissions to: Responses -> View/read and export, and Statistics: View/read.


I need help from two interns that can help me with the translation of my survey

  • Log in as admin (or as a user that has the Superadministrator permission).
  • Create n user accounts (where n is the number of translators).
  • Create a user group called Translators and add the n accounts to this group.
  • Go to the Survey permissions and click on Add a user group.
  • If they only do translations, then offer them the Quick translation permission.
Check our wiki section on users and their classification as it can be found in the code and documentation.