Actions

Управление на потребителите

From LimeSurvey Manual

Revision as of 07:44, 27 November 2023 by Maren.fritz (talk | contribs) (Created page with "{{Забележка|Всички разрешения, споменати по-горе, които принадлежат на Optional_settings#Security|принудит...")

Управление на потребителя

Инструментът за управление на потребители ви позволява да добавяте допълнителни административни потребители към LimeSurvey. Ние ги наричаме „потребители“. Не ги бъркайте с участници в проучването (респонденти).


Създаване на потребители

За да създадете нов потребител, отворете диалоговия прозорец за управление на потребители, като щракнете върху Конфигурация (разположен в главната лента с инструменти на LimeSurvey) -> Управление на потребители'.


Файл:LimeSurveyMenuUserManagement.png


След това щракнете върху Добавяне на потребител в горната дясна част на таблицата Потребителски контрол. Ще се покаже прозорец с молба да:

  • Въведете желаното потребителско име в полето Username.
  • Въведете имейл адреса в полето Email. Моля, обърнете внимание, че:
    • LimeSurvey изпраща имейл за потвърждение на адреса, въведен в полето Имейл. Този имейл адрес ще бъде използван като стандартен имейл адрес за контакт за проучвания, създадени от съответния потребител.
    • Ако не искате потребителят да получи имейл за потвърждение с връзка към приложението LimeSurvey, потребителско име и парола, можете да използвате собствения си имейл адрес, за да изпратите имейла за потвърждение до вас. След това можете да промените имейл адреса на адреса на потребителя.
  • Въведете пълното име на потребителя в полето Пълно име. Моля, обърнете внимание, че пълното име, въведено тук, ще се използва като стандартно име на лице за контакт за анкети, създадени от съответния потребител.
  • Щракнете върху Запазване, за да създадете новия потребител.

Имайте предвид, че сложността на паролата се налага и потвърждава от приставката PasswordRequirement.

Файл:LimeSurveyAddUser.jpg


Вече създадохте първия си потребител. За да научите повече за задаване на потребителски разрешения, моля, прочетете нататък.


Файл:LimeSurveyBleistiftSymbol.jpg


По-долу можете да видите четири опции под колоната Действие, които ви позволяват да:



  • редактирайте общите аспекти на даден потребител - като щракнете върху символа на писалка.
  • изтрийте потребителя от базата данни на администраторите на анкетата - като щракнете върху бутона за кошче.
  • задайте глобални разрешения за потребител - като щракнете върху символа за заключване .
  • задайте разрешения за тема за потребител - като щракнете върху символа с писалка и ключалка.

Редактиране на потребител

Щракнете върху иконата на писалка, за да редактирате информацията за потребителя.


Можете да въведете нов имейл адрес, име и да промените тяхната парола. Щракнете върху Запазване, за да потвърдите промените.

Изтриване на потребител

За да изтриете потребителски акаунт, щракнете върху съответната икона на кошчето (разположена на същия ред като потребителския акаунт, който искате да изтриете) и щракнете върху OK.

Задаване на глобални разрешения за потребител

  Глобалните разрешения се прилагат за цялото приложение LimeSurvey. Ако искате да зададете разрешения само за конкретно проучване, можете да използвате настройки за разрешения за проучване.


За да зададете глобални разрешения за потребител, щракнете върху символа за заключване.


Файл:User_global_permission.png


Използва се системата CRUD (създаване, четене, актуализиране и изтриване) (както е в настройки за разрешения за проучване). За повече опции за потребителски разрешения препоръчваме да разширите матрицата с помощта на стрелката с двойна дясна стрелка, която се намира в горния й десен ъгъл. Ако поставите отметка в първото поле, всички CRUD разрешения в този ред се маркират автоматично.

Файл:User_global_permission_complete.png

Вече можете да добавяте или премахвате следните разрешения:

  • 'Набори етикети: Разрешение за създаване, преглед, актуализиране, изтриване, експортиране и импортиране на набори етикети. Наборите етикети нямат специфични разрешения (за разлика от темите).
  • Настройки и добавки: С това разрешение потребителят може да проверява целостта на данните, да записва SQL базата данни в .sql файл, да управлява глобалните настройки, да преглежда PHP информацията в глобалните настройки и да управлява всички добавки.
  • Групи с анкети (New in 4.4.0 ): Дайте достъп до всички групи с анкети. За да позволите на потребителя да управлява собствената си група за проучвания, дайте му разрешението за създаване. Създател на група с анкети е (по подразбиране) собственик на тази група с анкети.

Template:Забележка

  • Проучвания: Дава достъп до всички анкети. За да позволите на потребителя да създава и управлява само своя собствена анкета, дайте на потребителя разрешението за създаване. Създателят на анкета е собственик на анкетата и винаги ще може да я управлява. Не забравяйте, че всяка анкета може да даде различни разрешения.

Template:Забележка

  • Теми: Позволява на потребителя да използва всички налични теми за дизайн и да редактира всички нестандартни теми. Човек с това разрешение трябва да има достатъчно познания по отношение на HTML, Javascript и CSS. Ако даден потребител не е запознат с тези неща и се предполага, че използва конкретни теми за дизайн, би било по-добре да му дадете само разрешение за „четене“. Всяка тема може да има специфични разрешения.
  • 'Потребителски групи: Позволява на потребителя да създава/преглежда/актуализира/изтрива потребителски групи.
  • Потребители: Потребителят може да създава, модифицира и изтрива свои собствени администраторски потребители с това разрешение. Новосъздадените потребители не могат да имат по-високи разрешения от родителския потребител. Също така няма да можете да редактирате потребители, притежавани от други административни потребители. Ако това трябва да се направи, тогава трябва да се даде разрешение за суперадминистратор.
  • Суперадминистратор: Може да се добави само от друг суперадминистратор с тази настройка като актуализация и дава пълно разрешение за цялото приложение LimeSurvey, включително инсталиране на плъгини и използване на всякакъв вид съдържание (включително JavaScript) в съдържанието на проучването. (вижте също глобални настройки за сигурност)
  • 'Използване на удостоверяване на вътрешна база данни': Позволява на потребителите достъп до панела на LimeSurvey чрез страницата за удостоверяване (напр. http://domain/admin/authentication/sa/login). Ако не е отметнато и съответният потребител се опита да се свърже с панела на LimeSuvey, той ще получи следната грешка: „Методът за удостоверяване на вътрешна база данни не е разрешен за този потребител“.

Template:Забележка

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.

If you have specific design themes for a group of users or customers, you can restrict their access to other themes to ensure that they use only themes created for them.

To set or edit the themes permissions for a user, 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 click Save: 0.75px.

To better understand this function, view 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' => true; has to be added to 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 a SHA 256 hash.

Things to watch out for:

  • To enable this login method, the line 'use_one_time_passwords' => true has to be added in config.php (it is 'false' by default).
  • The passed username has to exist in the LimeSurvey users table.
  • The one-time password (which can be set via an external application) has to be stored as MD5 hash in the column one_time_pw of table users.
  • The passed plain text password will be hashed using the sha256 function and will then 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 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.



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, click the Settings tab. Then, click Survey permissions and choose to whom would you like to offer permissions. The permissions 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 permissions 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 a checkbox from the first column, all the permissions of the corresponding line will be selected/removed.

Click 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 Save, 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 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.



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

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.

Examples

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


Add new LimeSurvey adminisrator

  • 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 their 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 to give another person permission to edit their 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 permissions you believe the respective user should have.

A person responsible for the survey wants to view and export survey results

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


Granting permission for help with translation of a 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.