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)
 
(14 intermediate revisions by 2 users not shown)
Line 4: Line 4:
=Управление пользователями=
=Управление пользователями=


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).
The user management tool allows you to add additional administration users to LimeSurvey. We refer to them as  'users'. Do not confuse them with [[Survey participants|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.
<div class="mw-translate-fuzzy">
Для создания нового пользователя откройте меню управления пользователями ('''главное меню''' -> '''управление пользователями''' [[File:LimeSurveyMenuUserManagement.png]]).
</div>




<center>[[File:LimeSurveyBenuzerVerwaltung.jpg]]</center>
<center>[[File:LimeSurveyMenuUserManagement.png]]</center>




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


* Enter the desired username into the '''Username''' text field.
<div class="mw-translate-fuzzy">
* Enter the email address into the '''Email''' text field. Please note that:
[[File:LimeSurey2.05_AddUser_ru.JPG]]
** 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;
* Введите email адрес в текстовое поле'''E-mail'''. Обратите внимание на то, что:
* 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.
** Если Вы не хотите чтобы пользователь получал письмо-подтверждение с ссылкой на LimeSurvey, именем пользователя и паролем, то Вам необходимо ввести в данное поле Ваш собственный email адрес, чтобы перенаправить данное письмо себе. После этого Вы можете изменить email адрес на адрес пользователя.
* Click '''Save''' to create the new user.
** LimeSurvey отправляет письмо для подтверждения постового адреса на '''Email'''. Данный email адрес будет использоваться как стандартный адрес почты контактного лица у опросов созданным данным пользователем.
* Введите полное имя пользователя в текстовое поле '''Полное имя'''. Обратите внимание на то, что:
** Полное имя указанное здесь будет использоваться как стандартное полное имя контактного лица для опросов созданных пользователем.
* Кликните '''Добавить пользователя'''
</div>


Note that password complexity is enforced and validated by the PasswordRequirement plugin.


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




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.
<div class="mw-translate-fuzzy">
Итак, Вы только что создали нового пользователя. Если Вы продолжите чтение данного руководства, то узнаете более подробно о настройке пользовательских прав доступа.
</div>




Line 34: Line 43:




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




Line 40: Line 49:




*edit the general aspects of a user - by clicking the pen symbol;
*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;
*delete the user from the survey administrators database - by clicking the trash button.
*set global permissions for a user - click the lock symbol;
*set global permissions for a user - by clicking the lock symbol.
*set template permissions for a user - click the pen-and-lock symbol.
*set theme permissions for a user - by clicking the pen-and-lock symbol.


==Edit user==
<div class="mw-translate-fuzzy">
==Редактирование настроек пользователей==
</div>


You can use the pen symbol to edit a user.  
<div class="mw-translate-fuzzy">
Чтобы изменить настройки пользователя Вы можете воспользоваться значком "Перо". [[File:LimeSurvey2.05_BleistiftSymbol_ru.jpg]]
</div>


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


<div class="mw-translate-fuzzy">
Вы можете задать новый email адрес, полное имя и даже изменить пароль. Кликните "Сохранить" когда завершите изменения.
</div>


==Delete user==  
==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'''.
<div class="mw-translate-fuzzy">
Чтобы удалить пользователя кликните кнопку "Удалить этого пользователя" располагающуюся в той же линии, в которой находится удаляемый пользователь. [[File:LimeSurvey2.05_DeleteUser_ru.jpg]]  Кликните '''Ок''' для подтверждения удаления пользователя.
</div>


<div class="mw-translate-fuzzy">
==Настройка прав доступа пользователя==
</div>


==Set global permissions for a user==
{{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]].}}


{{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]].}}
<div class="mw-translate-fuzzy">
Для установки прав доступа пользователя просто кликните по значку замка [[File:LimeSurey2.05_SetUserGlobalPermissions_ru.JPG]].
</div>


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


<div class="mw-translate-fuzzy">
[[File:LimeSurey2.05_SetGlobalPermissions_ru.JPG]]
</div>


<center>[[File:User_global_permission.png]]</center>


 
The CRUD (create, read, update, and delete) system is employed (as it is in the [[Manage users#Setting permissions for a single survey|survey permission settings]]). For more user permission options, we recommend extending 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.  
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.  


<center>[[File:User_global_permission_complete.png]]</center>
<center>[[File:User_global_permission_complete.png]]</center>


You can now add or remove the following permissions:
<div class="mw-translate-fuzzy">
Здесь Вы можете добавлять или удалять следующие права доступа:
* '''Группы пользователей''': позволяет управлять группами пользователей.
* '''Набор меток''': Данный пункт дает пользователю права на управление наборами меток.
* '''Настройки & Модули''': позволяет управлять модулями сайта.
* '''Опросы''': позволяет управлять опросами.
* '''Панель участника''': позволяет производить операции с базой участников опросов.
* '''Пользователи''': с данными правами пользователь может создавать новых пользователей и удалять тех, кого он сам же создал. Созданные пользователи не смогут иметь прав больших, чем у создавшего их аккаунта-родителя. Если это необходимо, то '''Супер-администратор''' может повысить права у пользователя.
* '''Шаблоны''': позволяет пользователю пользоваться шаблонами дизайна и редактировать все нестандартные шаблоны. Пользователь с данными правами должен иметь соответствующие знания в области HTML/php, Javascript и CSS. Если у пользователя отсутствуют данные знания для использования специфичного дизайна, то лучше установить права на конкретные шаблоны.
* '''SuperAdministrator''': Это право может быть добавлено или удалено только локальным администратором и делегирует полные права на всю LimeSurvey. '''Обратите внимание на то, что:''' Данные полномочия очень велики, поэтому делегируйте их тогда, когда все тщательно обдумали.
</div>


* '''Participant panel''': For more details, continue reading about the [[Central Participant Database|central participant database here]].
* '''Participant panel''': For more details, continue reading about the [[Central Participant Database|central participant database here]].


* '''Label sets''': Permission to create, view, update, delete, export, and import label sets. The label sets don't have specific permissions (unlike design templates).
* '''Label sets''': Permission to create, view, update, delete, export, and import label sets. The label sets do not 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 setting, view the PHP info in the global settings, and manage all plugins.
* '''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''': 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.  
*  '''Survey groups'''{{NewIn|v=4.4.0}}: Give access to all surveys' group. To allow user to manage their own surveys' group, give the user the 'create' permission. A creator of a surveys' group are (by default) the owner of this surveys' group.
{{Note|Permission on a surveys group does not give all permissions on surveys, but a user can give permissions on all surveys in surveys' group}}
 
* '''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!'''}}
{{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.
* '''Themes''': Allows the user to use all the available design themes and edit all non-standard themes. A person with this permission 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 them 'read' permission. Each theme can have specific permissions.
 
* '''User groups''': Allows a user to create/view/update/delete user groups.
 
* '''Users''': A user can create, modify, and delete their 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 must be granted.
 
* '''Superadministrator''': Can only be added by other Superadministrator with this setting as update and grants full permission to the whole LimeSurvey application, including installing plugins and using any kind of content (including JavaScript) in survey content. (see also [[Global_settings#Security|global security settings]])
 
*'''Use internal database authentication''': 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, they will get the following error: 'Internal database authentication method is not allowed for this user'.


* '''User groups''': This permission allows a user to create/view/update/delete user groups.
{{Note|All the permissions mentioned above that belong to the [[Optional_settings#Security|forced super administrator]] cannot be removed via the GUI.}}


* '''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.
==Import and export users==
{{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'.
You can import and export users in CSV and JSON format by using these buttons on User Management page.
<center>[[File:ImportExportButtons.png]]</center>


When you are importing users, a modal opens that shows you which fields should be present. You can choose to overwrite existing users by selecting this checkbox.
<center>[[File:ImportUsersModal.png]]</center>


==Set template permissions for a user==
Example of the JSON structure:


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.
<syntaxhighlight lang="json">
[
{
"uid": 1,
"users_name": "admin2",
"full_name": "Administrator",
"email": "your-email@example.net",
"lang": "en",
"password": ""
},
{
"uid": 2,
"users_name": "ben2",
"full_name": "Ben Alister",
"email": "ben@test.ing",
"lang": "auto",
"password": "test!123"
}
]
</syntaxhighlight>


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.
Example of the CSV structure:


To set or edit the template permissions for a user, simply click the pen-and-lock symbol for design templates:
<syntaxhighlight>
uid;users_name;full_name;email;lang;password
1;admin;Administrator;your-email@example.net;en;
2;ben;"Ben Alister";ben@test.ing;auto;test!123
</syntaxhighlight>




<center>[[File:LimeSurveySetDesignTemplatesLS.jpg]]</center>
<div class="mw-translate-fuzzy">
==Настройка прав доступа к шаблонам для пользователя==
</div>


<div class="mw-translate-fuzzy">
С помощью прав доступа на шаблоны Вы можете настраивать какими именно шаблонами может воспользоваться пользователь при создании своего опроса. Хорошей идеей будет являться ограничение выбора шаблонов не соответствующих по стилю опросам, которые будет создавать пользователь.
</div>


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]].
<div class="mw-translate-fuzzy">
'''Обратите внимание:''' Если у Вас есть какой либо конкретный шаблон оформления для группы пользователей или заказчиков, то, скорее всего, Вам может потребоваться исключительное ограничение на пользование только данным шаблоном.
</div>


To get a proper understanding of this function, check [[Manage users#Examples|the examples provided below]].
<div class="mw-translate-fuzzy">
Установить/изменить права доступа к шаблонам для пользователя можно просто кликнув по значку [[File:LimeSurey2.05_SetUserTemplatePermissions_ru.JPG]]
</div>


<div class="mw-translate-fuzzy">
[[File:LimeSurvey2.05_EditTplPermissions_ru.jpg]]
</div>
<div class="mw-translate-fuzzy">
Теперь Вы можете выбрать шаблоны оформления доступные для данного пользователя. После того как Вы закончили с настройкой прав, нажмите '''Сохранить настройки'''.
</div>
<div class="mw-translate-fuzzy">
Большинство важных пользовательских сценариев для предоставления прав пользователям собрано в одной из частей данной статьи под названием '''пользовательские сценарии'''.
</div>
==Activate and deactivate users==
{{FeatureStarting|6.4.0}}
It's possible to mark a user as activated or deactivated.
A deactivated user is not able to log in to the admin interface.


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


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).
<div class="mw-translate-fuzzy">
Начиная с версии 1.81 пользователь может запросить у LimeSurvey логин и одноразовый пароль, который предварительно был записан в таблицу пользователей (столбец `one_time_pw`) внешним приложением.
</div>


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


URL должен содержать следующие переменные:
URL должен содержать следующие переменные:
Line 121: Line 221:
* '''onepass:''' пароль передаваемый открытым текстом для сравнения с паролем содержащимся в таблице `users`.
* '''onepass:''' пароль передаваемый открытым текстом для сравнения с паролем содержащимся в таблице `users`.


A valid URL to login using a one-time password will look like this:
<div class="mw-translate-fuzzy">
Допустимый URL для входа с одноразовым паролем должен выглядеть примерно так...
</div>


<div class="mw-translate-fuzzy">
<div class="simplebox">http://www.<ваш_домен>.org/limesurvey/index.php/admin/authentication/login?user=myusername&onepass;=secretpassword</div>
<div class="simplebox">http://www.<ваш_домен>.org/limesurvey/index.php/admin/authentication/login?user=myusername&onepass;=secretpassword</div>
</div>


'''Things to watch out for:'''
<div class='simplebox'> [[File:help.png]] The 'secretpassword' field is plain text, not a SHA 256 hash.</div>
* 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.


<div class="mw-translate-fuzzy">
'''Этого нужно остерегаться:'''
* Одноразовые пароли должны быть включены параметром "$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`''. Оба пароля должны совпасть.
* После первого входа в систему одноразовый пароль удаляется из базы данных. Пользователь в дальнейшем не сможет войти в систему с данным паролем.
</div>


=Set permissions for a single survey=
<div class="mw-translate-fuzzy">
=Настройка прав доступа к одному опросу=
</div>


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]].
<div class="mw-translate-fuzzy">
These permissions can be offered either to a single user or to a user group.
Данные права доступа применимы только к одному опросу. Если Вы хотите установить права доступа распространяющиеся на всю систему, то воспользуйтесь глобальными правами доступа.
</div>


{{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''' 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.
<div class="mw-translate-fuzzy">
'''Обратите внимание:''' установка прав доступа на один опрос требует наличия существования учетной записи. Если учетная запись не существует, то Вам необходимо сначала создать ее и затем изменить настройки прав доступа к опросу. Вам совершенно не нужно устанавливать глобальные права доступа пользователю, нужно чтобы учетная запись просто существовала в системе.
</div>




<center>[[File:LimeSurveySurveyPermissions.jpg]]</center>
{{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.}}
 
 
<div class="mw-translate-fuzzy">
Для изменения прав доступа к опросу Вам необходимо выбрать '''Право доступа к опросу''' в меню '''Свойства опроса'''.
</div>
 
 
<div class="mw-translate-fuzzy">
[[File:LimeSurvey2.05_SurveyPermissions_ru.jpg]]
</div>




Line 149: Line 270:




==Grant survey permissions to a user==
<div class="mw-translate-fuzzy">
==Настройка пользовательских прав доступа для одного опроса==
</div>


In the next step, select the user that will receive survey rights and click '''Add user'''.
<div class="mw-translate-fuzzy">
В следующем шаге Вам необходимо выбрать пользователя, для которого требуется изменить права доступа к опросу и кликнуть '''Добавить пользователя'''.
</div>




<center>[[File:LimeSurveyAddSurveyPermission.jpg]]</center>
<div class="mw-translate-fuzzy">
[[File:LimeSurvey2.05_AddSurveyPermission_ru.jpg]]
</div>




After you click '''Set survey permissions''', the user's survey permissions matrix will be shown.
<div class="mw-translate-fuzzy">
После того как Вы кликнули '''Задать права доступа к опросу''' будут показаны матрица прав доступа к опросу и пользователь.
</div>


<center>[[File:LimeSurveyUserPermissionMatrix.jpg]]</center>
<div class="mw-translate-fuzzy">
[[File:LimeSurvey2.05_UserPermissionMatrix_ru.jpg]]
</div>


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.
<div class="mw-translate-fuzzy">
After you finished editing the survey permissions, click on the '''Save''' button, which is located in the upper right part of the screen.
В данной матрице Вы можете задать права для различных функций и разделов/частей. Вам просто необходимо установить соответствующую галочку для добаления/удаления права. Если Вы установите галочку в первой колонке, то тогда все права находящиеся в данной линии будут установлены/удалены.
</div>


Some examples are provided [[Manage_users#Examples|below]] in order to help you get a better understanding of the Limesurvey's survey permissions system.
<div class="mw-translate-fuzzy">
В других столбцах Вы можете в отдельности выбрать операции, которые может осуществлять пользователь.
</div>


<div class="mw-translate-fuzzy">
Большинство важных пользовательских сценариев для предоставления прав пользователям собрано в одной из частей данной статьи под названием '''пользовательские сценарии'''.
</div>


==Grant survey permissions to a user group==
==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.
Click '''add a user group''' and select the user group to which you would like to add the permission permissions.


<center>[[File:LimeSurveyPermissionRightsUserGroup.png]]</center>
<center>[[File:LimeSurveyPermissionpermissionsUserGroup.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.
In the next step,  select  the permissions that you will allocate to the members of that user group. Do not forget to click the double right arrowhead to get an extended view of the permissions matrix.




Line 181: Line 317:




After you finished editing the survey permissions, click on the '''Save''' button, which is located in the upper right part of the screen.
<div class="mw-translate-fuzzy">
После того как Вы закончите кликните '''Сохранить сейчас'''.
</div>


Some examples are provided [[Manage_users#Examples|below]] in order to help you get a better understanding of the Limesurvey's survey permissions system.
Some examples are provided [[Manage_users#Examples|below]] to help you get a better understanding of the Limesurvey's survey permissions system.


{{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.}}
{{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=
<div class="mw-translate-fuzzy">
 
=Пользовательские сценарии=
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.
</div>
 


==I want to add a new person in charge for administrating LimeSurvey==
<div class="mw-translate-fuzzy">
* Log in as '''admin'''.
В данной части статьи мы выразим некоторые идеи того, какие пользовательские сценарии существуют и какие права будут являться хорошим выбором.
* Create a new user account.
</div>
* 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==
<div class="mw-translate-fuzzy">
* Log in as '''admin''' (or as a user that has the '''Superadministrator''' permission).
==Добавить нового пользователя ответственного за администрирование  LimeSurvey==
* Create a new user account.
* войдите как '''admin'''
* 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.
* установите глобальные права доступа '''SuperAdministrator'''
* не обязательно: установите права доступа к шаблонам ('''SuperAdministrator''' имеет полные права доступа ко всем шаблонам)
* не обязательно: установите права доступа к опросам ('''SuperAdministrator''' имеет полные права доступа ко всем опросам)
</div>


==The creator of a survey needs another person to edit his/her survey==
<div class="mw-translate-fuzzy">
* Log in as '''admin''' (or as a user that has the '''Superadministrator''' permission).
==Новый пользователь хочет создавать собственные опросы==
* Create a new user account.
* войдите как '''admin''' или пользователь с правами доступа '''SuperAdministrator'''.
* 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>


<div class="mw-translate-fuzzy">
==Создателю опроса нужен человек имеющий право редактировать его опрос==
* войдите как '''admin''' или пользователь с правами доступа '''SuperAdministrator'''.
* создайте новую учетную запись
* '''не выбирайте никаких глобальных прав доступа'''  для пользователя
* '''не выбирайте никаких прав доступа к шаблонам''' для пользователя
* Задайте права доступа к необходимому опросу в зависимости от того, что он может делать с данным опросом. Если ему необходимо выдать полные права доступа, то просто установите галочку в первой колонке.
</div>


==A person responsible for the survey wants to see the results of the survey and export them==
<div class="mw-translate-fuzzy">
* Log in as '''admin''' (or as a user that has the '''Superadministrator''' permission).
==Лицо, ответственное за просмотр результатов опроса и их экспорт==
* Create a new user account.
* войдите как '''admin''' или пользователь с правами доступа '''SuperAdministrator'''.
* 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'''.
* '''не выбирайте никаких прав доступа к шаблонам''' для пользователя
* Задайте права доступа к необходимому опросу в строке '''Ответы''': '''Посмотреть/прочитать''' и '''Экспорт''', '''Статистика''': '''Посмотреть/прочитать'''
</div>




<center>[[File:LimeSurveyCusomerOwnStatistics.jpg]]</center>
<div class="mw-translate-fuzzy">
[[File:LimeSurvey2.05_CusomerOwnStatistics2_ru.JPG]]
</div>


==I need help from two interns that can help me with the translation of my survey==
<div class="mw-translate-fuzzy">
* Log in as ''admin'' (or as a user that has the ''Superadministrator'' permission).
----
* Create ''n'' user accounts (where n is the number of translators).
</div>
* 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.}}
<div class="mw-translate-fuzzy">
Существует несколько классов людей которые имеют доступ к системе LimeSurvey. Но только лишь множество людей обозначены как '''пользователи'' в коде и документации. Итак, чтобы лучше понимать терминологию программы, давайте разберемся что же это за классы людей.
</div>

Latest revision as of 17:05, 2 April 2024

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

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

The user management tool allows you to add additional administration users to LimeSurvey. We refer to them as 'users'. Do not confuse them with survey participants (respondents).


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

Для создания нового пользователя откройте меню управления пользователями (главное меню -> управление пользователями ).



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

  • Введите логин пользователя в текстовое поле Имя пользователя.
  • Введите email адрес в текстовое полеE-mail. Обратите внимание на то, что:
    • Если Вы не хотите чтобы пользователь получал письмо-подтверждение с ссылкой на LimeSurvey, именем пользователя и паролем, то Вам необходимо ввести в данное поле Ваш собственный email адрес, чтобы перенаправить данное письмо себе. После этого Вы можете изменить email адрес на адрес пользователя.
    • LimeSurvey отправляет письмо для подтверждения постового адреса на Email. Данный email адрес будет использоваться как стандартный адрес почты контактного лица у опросов созданным данным пользователем.
  • Введите полное имя пользователя в текстовое поле Полное имя. Обратите внимание на то, что:
    • Полное имя указанное здесь будет использоваться как стандартное полное имя контактного лица для опросов созданных пользователем.
  • Кликните Добавить пользователя

Note that password complexity is enforced and validated by the PasswordRequirement plugin.


Итак, Вы только что создали нового пользователя. Если Вы продолжите чтение данного руководства, то узнаете более подробно о настройке пользовательских прав доступа.



Below you can see 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 - by clicking the lock symbol.
  • set theme permissions for a user - by clicking the pen-and-lock symbol.

Редактирование настроек пользователей

Чтобы изменить настройки пользователя Вы можете воспользоваться значком "Перо".


Вы можете задать новый email адрес, полное имя и даже изменить пароль. Кликните "Сохранить" когда завершите изменения.

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


Для установки прав доступа пользователя просто кликните по значку замка .



The CRUD (create, read, update, and delete) system is employed (as it is in the survey permission settings). For more user permission options, we recommend extending 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.

Здесь Вы можете добавлять или удалять следующие права доступа:

  • Группы пользователей: позволяет управлять группами пользователей.
  • Набор меток: Данный пункт дает пользователю права на управление наборами меток.
  • Настройки & Модули: позволяет управлять модулями сайта.
  • Опросы: позволяет управлять опросами.
  • Панель участника: позволяет производить операции с базой участников опросов.
  • Пользователи: с данными правами пользователь может создавать новых пользователей и удалять тех, кого он сам же создал. Созданные пользователи не смогут иметь прав больших, чем у создавшего их аккаунта-родителя. Если это необходимо, то Супер-администратор может повысить права у пользователя.
  • Шаблоны: позволяет пользователю пользоваться шаблонами дизайна и редактировать все нестандартные шаблоны. Пользователь с данными правами должен иметь соответствующие знания в области HTML/php, Javascript и CSS. Если у пользователя отсутствуют данные знания для использования специфичного дизайна, то лучше установить права на конкретные шаблоны.
  • SuperAdministrator: Это право может быть добавлено или удалено только локальным администратором и делегирует полные права на всю LimeSurvey. Обратите внимание на то, что: Данные полномочия очень велики, поэтому делегируйте их тогда, когда все тщательно обдумали.
  • Label sets: Permission to create, view, update, delete, export, and import label sets. The label sets do not 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.
  • Survey groups (New in 4.4.0 ): Give access to all surveys' group. To allow user to manage their own surveys' group, give the user the 'create' permission. A creator of a surveys' group are (by default) the owner of this surveys' group.
Permission on a surveys group does not give all permissions on surveys, but a user can give permissions on all surveys in surveys' group
  • 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: Allows the user to use all the available design themes and edit all non-standard themes. A person with this permission 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 them 'read' permission. Each theme can have specific permissions.
  • User groups: Allows a user to create/view/update/delete user groups.
  • Users: A user can create, modify, and delete their 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 must be granted.
  • Superadministrator: Can only be added by other Superadministrator with this setting as update and grants full permission to the whole LimeSurvey application, including installing plugins and using any kind of content (including JavaScript) in survey content. (see also global security settings)
  • Use internal database authentication: 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, they 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.


Import and export users

You can import and export users in CSV and JSON format by using these buttons on User Management page.

When you are importing users, a modal opens that shows you which fields should be present. You can choose to overwrite existing users by selecting this checkbox.

Example of the JSON structure:

[
	{
		"uid": 1,
		"users_name": "admin2",
		"full_name": "Administrator",
		"email": "your-email@example.net",
		"lang": "en",
		"password": ""
	},
	{
		"uid": 2,
		"users_name": "ben2",
		"full_name": "Ben Alister",
		"email": "ben@test.ing",
		"lang": "auto",
		"password": "test!123"
	}
]

Example of the CSV structure:

uid;users_name;full_name;email;lang;password
1;admin;Administrator;your-email@example.net;en;
2;ben;"Ben Alister";ben@test.ing;auto;test!123


Настройка прав доступа к шаблонам для пользователя

С помощью прав доступа на шаблоны Вы можете настраивать какими именно шаблонами может воспользоваться пользователь при создании своего опроса. Хорошей идеей будет являться ограничение выбора шаблонов не соответствующих по стилю опросам, которые будет создавать пользователь.

Обратите внимание: Если у Вас есть какой либо конкретный шаблон оформления для группы пользователей или заказчиков, то, скорее всего, Вам может потребоваться исключительное ограничение на пользование только данным шаблоном.

Установить/изменить права доступа к шаблонам для пользователя можно просто кликнув по значку



Теперь Вы можете выбрать шаблоны оформления доступные для данного пользователя. После того как Вы закончили с настройкой прав, нажмите Сохранить настройки.

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

Activate and deactivate users

 Hint: This features is available starting in version 6.4.0

It's possible to mark a user as activated or deactivated.

A deactivated user is not able to log in to the admin interface.

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

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

Для активации данного метода должен быть включен параметр ($use_one_time_passwords = True; ) в config.php. См. настройки которые должны быть включены.

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

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

Допустимый URL для входа с одноразовым паролем должен выглядеть примерно так...

http://www.<ваш_домен>.org/limesurvey/index.php/admin/authentication/login?user=myusername&onepass;=secretpassword
The 'secretpassword' field is plain text, not a SHA 256 hash.

Этого нужно остерегаться:

  • Одноразовые пароли должны быть включены параметром "$use_one_time_passwords = true;" (для 1.92), соответствующим "use_one_time_passwords => true" (для 2.0 в разделе конфигурации) в config.php.
  • Пропускаемый пользователь должен существовать в LimeSurvey в таблице `users`
  • Одноразовый пароль который задается внешним приложением должен быть сохранен в виде MD5-хеша в столбце `one_time_pw` таблицы `users`
  • Проверяемый пароль должен быть хеширован функцией md5() и сравниваться с соответствующим значением в столбце `one_time_pw` таблицы `users`. Оба пароля должны совпасть.
  • После первого входа в систему одноразовый пароль удаляется из базы данных. Пользователь в дальнейшем не сможет войти в систему с данным паролем.

Настройка прав доступа к одному опросу

Данные права доступа применимы только к одному опросу. Если Вы хотите установить права доступа распространяющиеся на всю систему, то воспользуйтесь глобальными правами доступа.


Обратите внимание: установка прав доступа на один опрос требует наличия существования учетной записи. Если учетная запись не существует, то Вам необходимо сначала создать ее и затем изменить настройки прав доступа к опросу. Вам совершенно не нужно устанавливать глобальные права доступа пользователю, нужно чтобы учетная запись просто существовала в системе.


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.


Для изменения прав доступа к опросу Вам необходимо выбрать Право доступа к опросу в меню Свойства опроса.




Настройка пользовательских прав доступа для одного опроса

В следующем шаге Вам необходимо выбрать пользователя, для которого требуется изменить права доступа к опросу и кликнуть Добавить пользователя.



После того как Вы кликнули Задать права доступа к опросу будут показаны матрица прав доступа к опросу и пользователь.


В данной матрице Вы можете задать права для различных функций и разделов/частей. Вам просто необходимо установить соответствующую галочку для добаления/удаления права. Если Вы установите галочку в первой колонке, то тогда все права находящиеся в данной линии будут установлены/удалены.

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

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

Grant survey permissions to a user group

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

File:LimeSurveyPermissionpermissionsUserGroup.png

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



После того как Вы закончите кликните Сохранить сейчас.

Some examples are provided below 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.

Пользовательские сценарии

В данной части статьи мы выразим некоторые идеи того, какие пользовательские сценарии существуют и какие права будут являться хорошим выбором.


Добавить нового пользователя ответственного за администрирование LimeSurvey

  • войдите как admin
  • создайте новую учетную запись
  • установите глобальные права доступа SuperAdministrator
  • не обязательно: установите права доступа к шаблонам (SuperAdministrator имеет полные права доступа ко всем шаблонам)
  • не обязательно: установите права доступа к опросам (SuperAdministrator имеет полные права доступа ко всем опросам)

Новый пользователь хочет создавать собственные опросы

  • войдите как admin или пользователь с правами доступа SuperAdministrator.
  • создайте новую учетную запись
  • задайте глобальные права доступа к Опросы
  • задайте права доступа к шаблонам которые будут доступны пользователю/группе пользователей
  • не обязательно: задайте права доступа к опросу (создатель опроса имеет полные права на свои опрос(-ы))

Создателю опроса нужен человек имеющий право редактировать его опрос

  • войдите как admin или пользователь с правами доступа SuperAdministrator.
  • создайте новую учетную запись
  • не выбирайте никаких глобальных прав доступа для пользователя
  • не выбирайте никаких прав доступа к шаблонам для пользователя
  • Задайте права доступа к необходимому опросу в зависимости от того, что он может делать с данным опросом. Если ему необходимо выдать полные права доступа, то просто установите галочку в первой колонке.

Лицо, ответственное за просмотр результатов опроса и их экспорт

  • войдите как admin или пользователь с правами доступа SuperAdministrator.
  • создайте новую учетную запись
  • не выбирайте никаких глобальных прав доступа для пользователя
  • не выбирайте никаких прав доступа к шаблонам для пользователя
  • Задайте права доступа к необходимому опросу в строке Ответы: Посмотреть/прочитать и Экспорт, Статистика: Посмотреть/прочитать



Существует несколько классов людей которые имеют доступ к системе LimeSurvey. Но только лишь множество людей обозначены как 'пользователи в коде и документации. Итак, чтобы лучше понимать терминологию программы, давайте разберемся что же это за классы людей.