InfoBaseUsersManager.FindByName

Syntax:

FindByName(<UserName>)

Parameters:

<UserName> (required)

Type: String.
User name.

Returned value:

Type: InfoBaseUser; Undefined.
If a value is not found, for the user with the administrative rights the Undefined value is returned. For other users exception is caused.

Description:

Searches for information about the user with a specified name.

Availability:

Server, thick client, external connection.

Note:

In case the user has the administrative rights search of any user is supposed. If the user has no administrative rights search only that user under whom the given user was authorized is supposed.
If user name is empty then system returns object, which can be used when user is not specified (for e.g. in the event log's filter).
If configuration contains separators that separate authentication, and if at least one of them is not used in the session and does not separate users, the exception is raised if at least one user with such name is present in the list if infobase users.

    

1C:Enterprise Developer's Community