Actions

Manage users/ru: Difference between revisions

From LimeSurvey Manual

(Updating to match new version of source page)
(Updating to match new version of source page)
Line 4: Line 4:
=Управление пользователями=
=Управление пользователями=


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


==Создание пользователей==
==Создание пользователей==


To create a new user open the user management ("Configuration" -> "Manage survey administrators")ː
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]]
<center>[[File:LimeSurveyBenuzerVerwaltung.jpg]]</center>


[[File:LimeSurey2.05_AddUser_ru.JPG]]
Then, click on '''Add user''' located on the upper right part of '''User control''' table. A window will show up, asking you to:
* Введите логин пользователя в текстовое поле '''Имя пользователя'''.
* Введите email адрес в текстовое поле'''E-mail'''. Обратите внимание на то, что:
** Если Вы не хотите чтобы пользователь получал письмо-подтверждение с ссылкой на LimeSurvey, именем пользователя и паролем, то Вам необходимо ввести в данное поле Ваш собственный email адрес, чтобы перенаправить данное письмо себе. После этого Вы можете изменить email адрес на адрес пользователя.
** LimeSurvey отправляет письмо для подтверждения постового адреса на '''Email'''. Данный email адрес будет использоваться как стандартный адрес почты контактного лица у опросов созданным данным пользователем.
* Введите полное имя пользователя в текстовое поле '''Полное имя'''. Обратите внимание на то, что:
** Полное имя указанное здесь будет использоваться как стандартное полное имя контактного лица для опросов созданных пользователем.
* Кликните '''Добавить пользователя'''


Итак, Вы только что создали нового пользователя. Если Вы продолжите чтение данного руководства, то узнаете более подробно о настройке пользовательских прав доступа.
* 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 installation, username, and password, you can use your own email address to send the confirmation email to you. You can change after that 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.


==Редактирование настроек пользователей==
<center>[[File:LimeSurveyAddUser.jpg]]</center>


You can use the pen symbol to edit a userː
You have now created your first user. To find out more about [[Manage users#Set global permissions for a user|setting user permissions]], please continue reading further.


[[File:LimeSurveyBleistiftSymbol.jpg]]
<center>[[File:LimeSurveyBleistiftSymbol.jpg]]</center>


Вы можете задать новый email адрес, полное имя и даже изменить пароль. Кликните "Сохранить" когда завершите изменения.
As you can see below, there are four options under the '''Action''' column that allow you to:


==Удаление пользователей==
<center>[[File:Edit users.png]]</center>
*edit the general aspects of a user - by clicking the pen symbol;
*delete the user from the survey administrators database - by clicking the trash button;
*set global permissions for a user - click the lock symbol;
*set template permissions for a user - click the pen-and-lock symbol.


To delete a user account simply click the trash button in the line with the user account that should be deleted and hit '''OK'''.
==Edit user==


=Права доступа=
You can use the pen symbol to edit a user.


Права доступа действуют во всей системе LimeSurvey. Если же Вам необходимо предоставить права на какой либо конкретный опрос, то Вам необходимо воспользоваться "Право доступа к опросу".
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 set global permissions for a user just click the lock symbol.
To delete a user account, simply click on his or her corresponding trash button (located on the same line with the user account you want to delete) and click '''OK'''.


[[File:User_global_permission.png]]
==Set global permissions for a user==


[[File:User_global_permission_complete.png]]
{{Alert|Global permissions apply to the whole LimeSurvey installation. 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]].}}


{{FeatureChange|2.05}}
To set global permissions for a user, click on the lock symbol.


The system use CRUD (Create, read, update and delete) like the Survey permission setttings. Checking the first input checks all the CRUD permission for that row. To fine-tune permission we strongly recommend to extend the view using the arrow button on top of the checkbox column.
<center>[[File:User_global_permission.png]]</center>


You can now add or remove the following permissions.
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 situated on that row are automatically checked.  


* '''SuperAdministrator''': This permissions can only be added or removed by the user called '''admin''' and grants full permission to the whole LimeSurvey installation. '''Please note:''' This permissions is very powerful and you should be very careful with granting this permissions .
<center>[[File:User_global_permission_complete.png]]</center>


* '''Surveys''': This gives access to all surveys. To allow a user only to create and manage their own survey survey, only give the user the 'create' permission. A creator of a survey is the owner of this survey and will always be able to manage it. Remember that each survey can have specific permission, the global permission is applied before survey specific permission.
You can now add or remove the following permissions:


* '''Settings & Plugins''': With this permission a user can check data integrity, save the SQL database to an .sql file, manage global setting, view the PHP info in the global settings and manage all plugins.
* '''Participant panel''': For more details, continue reading about the [[Central participants database|central participants database here]].


* '''Users''': With this permission a user can create, modify and delete his own administration users. The newly created users cannot have higher permissions than the parent - also you will not be able to edit users owned by other administration. If this has to be done then a Superadmin permission has to be granted.
* '''Label sets''': Permission to create, view, update, delete, export, and import label sets. The label sets don't have specific permissions (unlike design templates).
 
* '''Settings & Plugins''': With this permission a user can check data integrity, save the SQL database to an .sql file, manage global setting, view the PHP info in the global settings, and manage all plugins.
 
* '''Surveys''': This gives access to all surveys. To allow a user only to create and manage their own survey survey, only 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 to users different permissions.  
{{Note|'''The global permission is applied before the survey-specific permission!'''}}
 
* '''Templates''': It allows the user to use all the available design templates and edit all non-standard templates. 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 template, it would be better to give him only access to 'read' permission. Each template can have specific permissions.


* '''User groups''': This permission allows a user to create/view/update/delete user groups.
* '''User groups''': This permission allows a user to create/view/update/delete user groups.


* '''Templates''': It allows the user to use all design templates and edit all non standard templates. A person with this right should have sufficient knowledge in terms of  HTML, Javascript and CSS. If a user is not familar with these things and is supposed to use a specific design template it would be better to give him only acccess to read permission. Each template can have specific permissions.
* '''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.


* '''Label sets''': Permission to create, update, use (view/read) and delete label sets. The label sets don't have specific permissions (unlike design templates).
* '''Superadministrator''': This permissions can only be added or removed by the user called '''admin''' and grants full permission to the whole LimeSurvey installation.
{Alert|title=Warning|text=This permissions is very powerful and you should be very careful with granting it.}}


* '''Participant panel''': see [[Central participants database]]
*'''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 the LimeSuvey's panel, he will get the following error: 'Internal database authentication method is not allowed for this user'.


==Настройка прав доступа к шаблонам для пользователя==
==Set template permissions for a user==


С помощью прав доступа на шаблоны Вы можете настраивать какими именно шаблонами может воспользоваться пользователь при создании своего опроса. Хорошей идеей будет являться ограничение выбора шаблонов не соответствующих по стилю опросам, которые будет создавать пользователь.
With template permissions, you can decide which design templates a user can select when creating or editing a survey. It might be a good idea to restrict the design templates a user can select in order to prevent unwanted use of design templates, which you might consider to be not suitable for a survey/questionnaire.


'''Обратите внимание:''' Если у Вас есть какой либо конкретный шаблон оформления для группы пользователей или заказчиков, то, скорее всего, Вам может потребоваться исключительное ограничение на пользование только данным шаблоном.
For example, if you have a specific design template for a group of users or customers, you might want to restrict their access to other templates to make them use only the template created for their purpose.


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


[[File:LimeSurvey2.05_EditTplPermissions_ru.jpg]]
<center>[[File:LimeSurveySetDesignTemplatesLS.jpg]]</center>


You can now select the design templates this user can select. After you finished your selection/deselection just hit '''Save''' in the upper right corner:
Select the design templates to which the respective user or user groups should have access to. After you finished your selection or deselection, do not forget to hit the '''Save''' button: [[File:Save.png|0.75px]].


[[File:Save_Close.jpg]]
To get a proper understanding of this function, check [[Manage users#Examples|the examples provided below]].


Большинство важных пользовательских сценариев для предоставления прав пользователям собрано в одной из частей данной статьи под названием '''пользовательские сценарии'''.
=Использование одноразовых паролей=


=Настройка прав доступа к одному опросу=
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 [[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).
 
URL должен содержать следующие переменные:
* '''user:''' имя пользователя используемого для входа в LimeSurvey. Данное имя пользователя должно существовать в таблице `users` базы данных.
* '''onepass:''' пароль передаваемый открытым текстом для сравнения с паролем содержащимся в таблице `users`.


'''Обратите внимание:''' установка прав доступа на один опрос требует наличия существования учетной записи. Если учетная запись не существует, то Вам необходимо сначала создать ее и затем изменить настройки прав доступа к опросу. Вам совершенно не нужно устанавливать глобальные права доступа пользователю, нужно чтобы учетная запись просто существовала в системе.
A valid URL to login using a one-time password will look like this:


==Настройка пользовательских прав доступа для одного опроса==
<div class="simplebox">http://www.<ваш_домен>.org/limesurvey/index.php/admin/authentication/login?user=myusername&onepass;=secretpassword</div>


Для изменения прав доступа к опросу Вам необходимо выбрать '''Право доступа к опросу''' в меню '''Свойства опроса'''.
'''Things to watch out for:'''
* 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 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 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.


[[File:LimeSurvey2.05_SurveyPermissions_ru.jpg]]
=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 [[Manage users#User Management#Set global permissions for a user|global permissions]].
These permissions can be offered either to a single user or to a user group.


[[File:LimeSurvey2.05_AddSurveyPermission_ru.jpg]]
{{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.}}


После того как Вы кликнули '''Задать права доступа к опросу''' будут показаны матрица прав доступа к опросу и пользователь.
To change the survey permissions, you have to select the '''Settings''' menu of your survey, which includes the general settings of your installation. 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.


[[File:LimeSurvey2.05_UserPermissionMatrix_ru.jpg]]
<center>[[File:LimeSurveySurveyPermissions.jpg]]</center>


В данной матрице Вы можете задать права для различных функций и разделов/частей. Вам просто необходимо установить соответствующую галочку для добаления/удаления права. Если Вы установите галочку в первой колонке, то тогда все права находящиеся в данной линии будут установлены/удалены.
<center>[[File:LimeSurveySurveyPermissionsRights.png]]</center>


В других столбцах Вы можете в отдельности выбрать операции, которые может осуществлять пользователь.
==Grant survey permissions to a user==


After you finished editing the survey permissions click '''Save''' or '''Save and close''' in the upper right corner.
In the next step, select the user that will receive survey rights and click '''Add user'''.


[[File:Save-SaveAndClose-Close.jpg]]
<center>[[File:LimeSurveyAddSurveyPermission.jpg]]</center>


Большинство важных пользовательских сценариев для предоставления прав пользователям собрано в одной из частей данной статьи под названием '''пользовательские сценарии'''.
After you click '''Set survey permissions''', the user's survey permissions matrix will be shown.


=Пользовательские сценарии=
<center>[[File:LimeSurveyUserPermissionMatrix.jpg]]</center>


В данной части статьи мы выразим некоторые идеи того, какие пользовательские сценарии существуют и какие права будут являться хорошим выбором.
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.  


==Добавить нового пользователя ответственного за администрирование  LimeSurvey==
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.
* войдите как '''admin'''
After you finished editing the survey permissions, click on the '''Save''' button, which is located in the upper right part of the screen.
* создайте новую учетную запись
* установите глобальные права доступа '''SuperAdministrator'''
* не обязательно: установите права доступа к шаблонам ('''SuperAdministrator''' имеет полные права доступа ко всем шаблонам)
* не обязательно: установите права доступа к опросам ('''SuperAdministrator''' имеет полные права доступа ко всем опросам)


==Новый пользователь хочет создавать собственные опросы==
Some examples are provided [[Manage_users#Examples|below]] in order to help you get a better understanding of the Limesurvey's survey permissions system.
* войдите как '''admin''' или пользователь с правами доступа '''SuperAdministrator'''.
* создайте новую учетную запись
* задайте глобальные права доступа к '''Опросы'''
* задайте права доступа к шаблонам которые будут доступны пользователю/группе пользователей
* не обязательно: задайте права доступа к опросу  (создатель опроса имеет полные права на свои опрос(-ы))


==Создателю опроса нужен человек имеющий право редактировать его опрос==
==Grant survey permissions to a user group==
* войдите как '''admin''' или пользователь с правами доступа '''SuperAdministrator'''.
* создайте новую учетную запись
* '''не выбирайте никаких глобальных прав доступа'''  для пользователя
* '''не выбирайте никаких прав доступа к шаблонам''' для пользователя
* Задайте права доступа к необходимому опросу в зависимости от того, что он может делать с данным опросом. Если ему необходимо выдать полные права доступа, то просто установите галочку в первой колонке.


==Лицо, ответственное за просмотр результатов опроса и их экспорт==
Click on add a user group and select the user group to which you would like to add the permission rights.
* войдите как '''admin''' или пользователь с правами доступа '''SuperAdministrator'''.
* создайте новую учетную запись
* '''не выбирайте никаких глобальных прав доступа'''  для пользователя
* '''не выбирайте никаких прав доступа к шаблонам''' для пользователя
* Задайте права доступа к необходимому опросу в строке '''Ответы''': '''Посмотреть/прочитать''' и '''Экспорт''', '''Статистика''': '''Посмотреть/прочитать'''


[[File:LimeSurvey2.05_CusomerOwnStatistics2_ru.JPG]]
<center>[[File:LimeSurveyPermissionRightsUserGroup.png]]</center>


----
You will select in the next step 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.


Данная информация в дальнейшем будет перемещена куда либо еще в соответствующий раздел:
<center>[[File:UserGroupSurveyPermissions.png]]</center>


Существует несколько классов людей которые имеют доступ к системе LimeSurvey. Но только лишь множество людей обозначены как '''пользователи'' в коде и документации. Итак, чтобы лучше понимать терминологию программы, давайте разберемся что же это за классы людей.
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 [[Manage_users#Examples|below]] in order to help you get a better understanding of the Limesurvey's survey permissions system.
! Class !! Description
|-
|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.  
|}


=Использование одноразовых паролей=
{{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.}}


Начиная с версии 1.81 пользователь может запросить у LimeSurvey логин и одноразовый пароль, который предварительно был записан в таблицу пользователей (столбец `one_time_pw`) внешним приложением.
=Examples=


Для активации данного метода должен быть включен параметр ($use_one_time_passwords = True; ) в config.php. См. [[Optional settings#Use_one_time_passwords |настройки которые должны быть включены]].
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.


URL должен содержать следующие переменные:
==I want to add a new person in charge for administrating LimeSurvey==
* '''user:''' имя пользователя используемого для входа в LimeSurvey. Данное имя пользователя должно существовать в таблице `users` базы данных.
* Log in as '''admin'''.
* '''onepass:''' пароль передаваемый открытым текстом для сравнения с паролем содержащимся в таблице `users`.
* Create a new user account.
* Grant that user the '''Superadministrator''' permission.
* ''Not necessary'' : Setting the template permissions ('''Superadministrator''' has all permissions for all templates).
* ''Not necessary'' : Setting the survey permissions ('''Superadministrator''' has all permissions for all surveys).


Допустимый URL для входа с одноразовым паролем должен выглядеть примерно так...
==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 template permissions - select which template(s) should be used by the user/user group.


... для версий от 1.81 до 1.92:
==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 template 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.


<div class="simplebox">http://www.<ваш_домен>.org/limesurvey/admin/admin.php?user=myusername&onepass;=secretpassword</div>
==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 template permissions''' for user.
* Set survey permissions to: '''Responses''' -> '''View/read''' and '''export''', and '''Statistics''': '''View/read'''.


... для версий 2.0 и старше:
<center>[[File:LimeSurveyCusomerOwnStatistics.jpg]]</center>


<div class="simplebox">http://www.<ваш_домен>.org/limesurvey/index.php/admin/authentication/login?user=myusername&onepass;=secretpassword</div>
==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 ''Superadministratpr'' 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 do only translations, then offer them the '''Quick translation''' permission.


'''Этого нужно остерегаться:'''
{{Note|Check our [[LimeSurvey Users|wiki section on users]] and their classification as it can be found in the code and documentation.}}
* Одноразовые пароли должны быть включены параметром "$use_one_time_passwords = true;" (для 1.92), соответствующим "use_one_time_passwords => true" (для 2.0 в разделе конфигурации) в config.php.
* Пропускаемый пользователь должен существовать в LimeSurvey в таблице ''`users`''
* Одноразовый пароль который задается внешним приложением должен быть сохранен в виде [http://www.php.net/md5 MD5-хеша] в столбце ''`one_time_pw`'' таблицы ''`users`''
* Проверяемый пароль должен быть хеширован функцией md5() и сравниваться с соответствующим значением в столбце ''`one_time_pw`'' таблицы ''`users`''. Оба пароля должны совпасть.
* После первого входа в систему одноразовый пароль удаляется из базы данных. Пользователь в дальнейшем не сможет войти в систему с данным паролем.

Revision as of 20:20, 2 February 2018

__ОГЛАВЛЕНИЕ__

Управление пользователями

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

Создание пользователей

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 on the upper right part 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 installation, username, and password, you can use your own email address to send the confirmation email to you. You can change after that 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 continue reading further.

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 trash button;
  • set global permissions for a user - click the lock symbol;
  • set template permissions for a user - click 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 trash button (located on the same line with the user account you want to delete) and click OK.

Set global permissions for a user

  Global permissions apply to the whole LimeSurvey installation. 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 situated on 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 design templates).
  • Settings & Plugins: With this permission a user can check data integrity, save the SQL database to an .sql file, manage global setting, view the PHP info in the global settings, and manage all plugins.
  • Surveys: This gives access to all surveys. To allow a user only to create and manage their own survey survey, only 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 to users different permissions.
The global permission is applied before the survey-specific permission!
  • Templates: It allows the user to use all the available design templates and edit all non-standard templates. 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 template, it would be better to give him only access to 'read' permission. Each template 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 or removed by the user called admin and grants full permission to the whole LimeSurvey installation.

{Alert|title=Warning|text=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 the LimeSuvey's panel, he will get the following error: 'Internal database authentication method is not allowed for this user'.

Set template permissions for a user

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

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

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

Select the design templates to which the respective user or user groups should have access to. 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.

Использование одноразовых паролей

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).

URL должен содержать следующие переменные:

  • user: имя пользователя используемого для входа в LimeSurvey. Данное имя пользователя должно существовать в таблице `users` базы данных.
  • onepass: пароль передаваемый открытым текстом для сравнения с паролем содержащимся в таблице `users`.

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

http://www.<ваш_домен>.org/limesurvey/index.php/admin/authentication/login?user=myusername&onepass;=secretpassword

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.
  • 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.

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.


To change the survey permissions, you have to select the Settings menu of your survey, which includes the general settings of your installation. 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 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.

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.

You will select in the next step 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 template permissions (Superadministrator has all permissions for all templates).
  • 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 template permissions - select which template(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 template 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 template 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 Superadministratpr 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 do only 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.