Hardware and software setup

How to remove active users in 1s 8.2. Setting up sleep sessions

Need for forced termination The user experience mainly occurs in the following cases:

  • Information base update;
  • Adding a new metadata object to the configuration;
  • Carrying out preventive and repair work on the server;
  • A hung user session that prevents the application from restarting.

In this article, we will try to tell you how to end a user session, what tools an administrator has in his arsenal to complete this task, what termination options are provided by the file, and which client-server version of 1C.

It is important to remember that when you force a session to end, you may lose data. So in order to avoid unpleasant situations, it is advisable to warn users in advance about the disconnection.

Closing sessions from the configurator

When changes are made to the database structure, dynamic configuration updates become unavailable. And an information window appears on the screen (Fig. 1).

The sequence of actions in this case is obvious:

  1. You must click the "End sessions and repeat" button;
  2. Wait for the database restructuring window;
  3. Press OK.

It should be noted that changes made to the program code do not require users to shut down, but without restarting the application on each specific computer, they will not work on this device.

Ending sessions directly from the program

Most of the standard products of the 1C company of the eighth version have in their set a mechanism that allows you to easily terminate the user's work remotely and provide the administrator with exclusive access to the database. This is the "Blocking connections to the infobase" processing.

You can find it at one of two addresses:

  1. In one of the submenus of the "Service" section;
  2. By going to the Operations->Processing section.

Fig.2

Appearance processing is shown in Fig.2.

Features of this processing:

  1. Checking and unchecking the box, and pressing the "Record" button, turns on and off the blocking of users, deleting sessions and preventing the creation of new connections;
  2. The lock end time cannot be empty or less than its start time;
  3. In the case when the “Permission code” parameter is set, it can be written in the launch line to ignore the blocking by specifying “/UC” before the code;
  4. If the "Permission code" is not specified, then it will be problematic to get into the database before the expiration of the blocking period (in the file version of work, you can try to delete the 1CVcdn file from the database folder);
  5. If instead of the “/UС” parameter and the password separated by a space, specify “/CAllow Users”, where C is Latin, you can completely disable the lock for all users;
  6. Pressing the Active Users button brings up a window with complete list users (Fig. 3), from where you can open the "Registration Log" or end the session of each specific user.

Fig.3

The above two options work fine in both file and client-server mode. Further we will consider cases specific only for server work.

Removing users from rdp

It is important to remember that disconnecting user sessions from servers is possible only if you have certain rights to do so.

When working from a remote desktop, you can end user sessions using the standard task manager. Simply terminating sessions is a bit of a misnomer, but it works quite well.

The second option is to use Task Manager − remote connection with the ability to manage each specific session and exit the program according to all the rules. This method is long, and no one guarantees that while one user is logged out, the program will not be launched by any other worker.

Removing users through the server console

Having Administrator rights for a 1C server cluster, you must:


Very often, when working in server mode, hung user sessions are not visible by means of the platform; they can only be deleted through the console.

The most radical way to terminate sessions

The situation when the above methods did not work is extremely rare. But if it occurs, there is another radical way to interrupt connections with the database: a physical reboot of the server.

Of course, users who do not have time to finish the work and save the data will be extremely outraged by such a shameless attitude, but it is fast and it is extremely effective.

At backup infobases, the work of users with the infobase should be terminated.

"Shut down 1C:Enterprise users"
Set the flag if it is necessary to terminate users' work with the database before archiving.

Possible options for shutting down users:

  • "End sessions on 1C:Enterprise server"

An option to disconnect users by forcibly disconnecting sessions on the 1C:Enterprise server. Available only for 1C:Enterprise client/server databases.

Important: do not confuse this user with a 1C:Enterprise base user and a "central server administrator" user.

In the 1C:Enterprise server console, cluster administrators are located in the following path: "Console Root" - "1C:Enterprise 8.3 Central Servers" - "(*)computer name" - "Clusters" - "Local Cluster" - "Administrators".

"Cluster administrator name:"
The username is "cluster administrator".

"Cluster administrator password:"
The password for the user is "cluster administrator".

"A non-standard server agent port is being used"
Set this flag if the connection port to the Server Agent is different from the standard one.

"Port:"
Port for connecting to the 1C:Enterprise server agent. The default is 1540.

To determine the port of the server agent, go to Server 1C by clicking right click click on the computer name from the drop-down menu, select "Properties" - "Parameters of the central server 1C: Enterprise" - "IP port:".

Option to disable users by calling the built-in user shutdown mechanism in typical configurations. This mechanism is based on using the "Blocking the establishment of connections to the infobase" procedure.

The execution algorithm is as follows:

  • Trigger user shutdown.
  • Starting a task execution (archiving, testing and fixing, etc.).
  • Launching user permissions.

"Moment:"
The moment when users exited.

  • "Shut down before running task". Before each task execution, a user shutdown procedure will be run.
  • "Quit only if you need to update the configuration". If the task is configured to perform an exchange for an edge base and a modified configuration is received from the central node, the user shutdown procedure will start. In other cases, the completion mechanism will not work.

Administration and control of 1C 8.3 users is an integral part of the implementation and support of any software product firm 1C. In fact, this is a simple task, and, I am sure, any person can easily cope with it. Consider the process of administering 1C users in more detail.

User management in 1C is a fairly simple and intuitive process, but it still needs a description.

Conditionally administration and control includes:

  • user creation;
  • setting user rights;
  • view active users;
  • analysis of user actions.

Let's consider each of these points in more detail:

Creation and installation of user rights 1C 8.2

Depending on the configuration, users are entered either in the configurator or in user mode. Almost all modern configurations support user input in 1C: Enterprise 8 mode. Also in 1C: Enterprise mode, as a rule, additional user parameters are entered.

However, regardless of the configuration, the first user with administrative rights is always entered in configurator mode. Therefore, we will consider both modes of user input.

Entering users in the Configurator

To enter the 1C Configurator mode, select the Configurator option in the database selection list:

After logging in, select Administration - Users from the menu. A list of users will open, if you start the first user, it will be empty. Let's add a new user "Administrator":

On this page you must specify the user settings:

  • Name and Full name— username.
  • If the flag is set Authentication 1C: Enterprises, then the items will become available Password(password that is used to enter 1C), The user is not allowed to change the password(makes affordable opportunity password change by user in user mode), Show in selection list(makes available the user's choice in the list, in otherwise username must be entered manually).
  • Authentication operating system flag responsible for the possibility of authorization using the username of the operating system. User- Username information system(for example, \\dom\kirill, where dom is the network domain and kirill is the OS username). 1C at startup first checks authorization through the OS, and then authorization 1C 8.2.
  • Open ID authentication- enabling authorization using OpenID technology . Open ID is an open decentralized system that allows the user to use a single account to authenticate on a variety of unrelated sites, portals, blogs and forums.

Get 267 1C video lessons for free:

On the tab Other you need to specify the appropriate roles for the user (). In our case, we will specify for the administrator Full rights. For other users, the required roles can be flagged here. User rights are summarized from the available objects of different roles. Those. if the user has two roles selected, one has access to the "Nomenclature" directory, and the second role does not, access will be. For any user without "Full rights" the user role must be set(if present).

Also on this tab you can specify Main interface(only works for regular forms). Default language— if the configuration is developed in several languages. Start mode- managed or regular application.

Creating a user in 1C Accounting 2.0

After a user with full rights is registered in the system, users can be entered in 1C: Enterprise mode. For example, let's create a user in the most common configuration - Enterprise Accounting 8.2.

To do this, select the menu item Service - User and Access Management. The "Users" directory will open. Create a new user:

Enter information about the user and its main ones, click the "OK" button: the system will offer to automatically create a database user:

You must agree, the form of the new database user will be displayed:

That's all! The creation of the user and the assignment of rights to him is completed.

Viewing active users in the 1C database

To view users working in the database in 1C: Enterprise mode, select the item Service - Active Users. A list of users working in the database will open:

How to disable users in 1C 8.3 and 8.2

There are two ways to disable an active user in the 1C database:

  • in the program interface (for configurations 1C Accounting 3.0, Trade Management 11, etc.);
  • via the server cluster console (only available in client-server mode).

From the interface

In user mode, you can kick out a hung user by going to the "Administration" - "Support and maintenance" menu, then selecting the "Active users" item:

Choose from the list desired user and click the "Finish" button.

From the cluster console

If you have access to the administrative panel of the 1C server, you can end the session using it. We go to the console, find the hung user in the "Sessions" menu, call context menu and click "Delete":

User control 1C 8.3

To view the user's work history, go to the menu item Service - :

For routine maintenance in information base 1C:Enterprise 8 often needs to get exclusive access to the database. For example, to perform a database backup or perform routine maintenance on the DBMS server (reindexing, etc.), you must disable all active sessions.

Let's consider a simple way to disconnect users from an infobase using the standard functionality of the 1C:Enterprise server.

Standard functionality

I’ll make a reservation right away that we will be talking about the client-server version of 1C: Enterprise 8. To disable sessions, go to the server administration console. There we will find the necessary infobase in the list:

Going into the IB properties, set the option "Locking the start of sessions is enabled." In this case, it may be necessary to enter the username/password account infobase administrator.

Don't forget to set the session blocking period. You should also ensure that all background jobs must be stopped while sessions are blocked. This is done with the "Blocking of scheduled jobs enabled" option.

If necessary, you can set the message text for users who will be notified 5 minutes before the sessions are blocked, as well as the permission code for entering the infobase during the session blocking period.

The permission code can be used to enter the infobase to perform routine maintenance while other sessions are not active. You need to enter the permission code when connecting to the database using the parameters. For example, this is what the parameter passed to the server would look like if the permission code is "123456".

By entering the database in this way, we will get exclusive access to the infobase. Other sessions will not be able to join us.

The notification to the user that sessions are locked looks like this (depending on the message entered by the administrator). It appears every minute 5 minutes before the blocking period.

At the beginning of the session blocking period, a notification first appears:

After the session ends.

Active sessions can also be disabled by removing them from the list of active sessions. Such an action is sometimes necessary to end hung sessions.

In practice, disconnecting users is best communicated in advance to reduce the risk of losing data entered by users but not yet saved.

- Vasya, from today you are the one who turns on the users!
— But I'm a programmer, not a system administrator?!
- System administrators do not know 1C, so you will start the users!
— Aaaaa!!!

A programmer is a person who writes programs for a computer. However, managing the list of users in 1C is usually entrusted to someone who is associated with 1C, namely, a 1C programmer.

In principle, some programmers do not mind, since this gives them some "privileges" in their hands.

Nevertheless, the list of users in 1C differs little from the lists of users in other programs. Therefore, getting a new user or deactivating an existing one is as easy as shelling pears.

1C users

So, 1C has its own list of users. With it, access to the 1C database is regulated. When entering the database, 1C will ask you to select a user from this list and enter a password.

There are options in which 1C does not ask for a username to log in. However, that doesn't mean anything at all. It's just that in this case the user from the list is mapped to a Windows/domain user and is determined automatically. How

The only option when 1C does not really prompt the user is when creating a new (empty) database. In this case, the list of 1C users is empty. Until the first user is added, 1C will log in automatically. A similar system is used in Windows when there is a single user without a password.

1C users differ from each other:

  • Access rights
  • Interface (presence in the menu of items).

There is no "superuser" or "administrators group" as such. An administrator is a user who has all the rights in the configuration and administration rights enabled. In an empty database (when the list of users is still empty), this user should be added first.

Two lists of 1C users

In fact, in 1C there are two lists of users. One of them (the list of 1C users) is “real” from the point of view of the programmer. It's in the config. It is for him that 1C determines the user.

This is the approach of old typical configurations (for example, trade management 10, accounting 1.6, etc.) - users are edited in this list, and they automatically enter the user directory upon first login.

The second one (users of version 1C 8.2, “not real”) is the users directory (and the external users directory, as in ut 11). There was a directory before, but the approach of the new typical configurations is that users start up in it, and automatically get into the “real” list.

The main problem with this approach is that those who do not like to work this way and want to do it the old way cannot do it, because certain fields are filled in at the establishment, and if you start the user with pens in the list, they will no longer be picked up in the directory automatically.

How to add a user to the list of 1C users

So, the list of 1C users is in the configurator. and open the Administration/Users menu.

To add a user, you must press the add button (or Ins from the keyboard). If the list is currently empty, then the first user must have administrative rights (see below).

  • Name - username (which he will choose when entering 1C)
  • Full name - reference full name, does not appear anywhere
  • Password
  • Show in selection list
    o if the checkbox is checked, then the user will be in the selection list when entering 1C
    o if the checkbox is not checked, then the user will not be in the selection list (that is, you cannot select), but you can enter his name from the keyboard and log in
  • Operating system authentication - can be associated with a Windows / domain user and this user will not need to enter a password (it will log in automatically).

On the Other tab, you can select rights and basic user settings.

  • Main interface - the menu that will be available to the user (only used in the thick client)
  • Russian language
  • [Basic] Startup mode - thick or thin client, using this parameter you can enter the thin client configuration - thick and vice versa
  • Available roles (user rights).

User rights in configurations are usually divided into blocks (“roles”). In the approach of the old configurations, they were broken down by user positions (cashier, manager, etc.). This approach has a disadvantage, since different organizations cashier and manager may have different functions.

Therefore, in the approach of new configurations, they are broken down by actions (access to burying the month, access to cash transactions). That is, a set of operations is set for each user.

In both cases, there are basic rights to access the entrance to the program. In the old approach, this is:

  • User
  • FullPermissions (for administrator).

In the new approach, this is:

  • BasicRights
  • BasicRightUT
  • LaunchThinClient - plus LaunchXxxxClient to launch others
  • SubsystemХхх - checkbox for each subsystem (tab in the interface) that the user needs
  • FullPermissions (for administrator, not Administration!).

PS. For external users, basic rights are not needed.

How to add a 1C user - 1C 8.2 users

The list of 1C 8.2 users in the new version is located in 1C (in 1C Enterprise mode), in the Users and External Users directories (only if the configuration supports). The difference is that you must create users not in the configurator, but in this directory, and they will automatically enter the configurator.

If you are using a thin client, then see the Administration tab on the desktop. Otherwise, open the Users directory, for example, through the Operations menu.

Click the Add button (or Ins from the keyboard). To be able to manage the list of users, you must have FullPermissions enabled.


Unlike the first approach, here you do not directly specify each right (role) to the user, but specify groups of rights (user groups).

The User Groups directory contains a profile that defines a set of rights (roles). In the User Group Profiles directory, you can change or add such sets of rights (roles).

User settings 1C

In some configurations (especially in the old approach configurations) it is not enough to create a user. Additionally, you need:

  • Login as a user for the first time
  • After that, find the user in the user directory
  • In the form of a directory, press (options "or")
    o Go Menu/User Settings
    o Additional information/User settings menu and Additional user rights
    o In some configurations, this is a plate directly on the user form
    o In some configurations, the global menu of the program Tools/User settings
  • Configure advanced settings/user rights that define autocomplete fields and some accesses.

How to disable a 1C user

[Temporary] disconnection of the user in most configurations is not provided. Here are the variations that can be used to achieve this result.

Configurations of the old approach (via the configurator):

  • Delete user
  • Change password
  • Remove the User role (cannot login).

New Approach Configurations (via Enterprise):

  • Uncheck Access to info. database allowed
  • Change password
  • Exclude from all access groups.

Active users 1C

1C allows you to find out the list of users who are currently in the database.

To do this, in the Enterprise mode, select the menu Tools / Active users (thick client, administrative interface). V thin client– Administration tab, active users on the left (may be in See also).

In the Configurator mode, select the Administration/Active Users menu.

Disabling 1C users

As you know, in order to update the database (configuration), it is necessary that all users exit 1C (not in all cases, but often required).

Users do not like to go out (this is a fact). And if you ask them by phone, they will definitely enter again in 30 seconds. When there are 200 users, it becomes a very fun event.

Therefore, there are three ways to disconnect users from 1C:


Liked the article? Share with friends!
Was this article helpful?
Yes
Not
Thanks for your feedback!
Something went wrong and your vote was not counted.
Thank you. Your message has been sent
Did you find an error in the text?
Select it, click Ctrl+Enter and we'll fix it!