BLOB TO USERS

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 2004


BLOB TO USERS (users)

ParameterTypeDescription
usersBLOBBLOB (encrypted) containing database user accounts
created and saved by the database Administrator

Description

The BLOB TO USERS command adds the user accounts present in the BLOB users in the database. The BLOB users is encrypted and must have been created using the USERS TO BLOB command.

Only the database Administrator or Designer can execute this command. If another user attempts to execute it, the command does nothing and a privilege error (-9949) is generated.

The following rules apply when adding a user account:

The user ID is used as a reference. Users are processed in order according to their user ID.

If the number already exists in the structure file, account information is updated if necessary, according to the information contained in the BLOB.

If the number does not exist in the structure file, the user is created according to the information contained in the BLOB.

If the number matches a user account that was deleted in the structure file, the account is updated according to the information contained in the BLOB.

If the information contained in the BLOB indicates that the user account is deleted, the account is deleted from the structure file.

Updated users are linked to groups according to the information in the BLOB.

If a group does not exist, it is created.

If the command is executed correctly, the system variable OK is set to 1. Otherwise, it is set to 0.

Compatibility note: User and group files (.4UG extension) created by the Save Groups... menu command in versions of 4th Dimension prior to 2004 can be loaded in 4th Dimension 2004 using the following sequence:

   DOCUMENT TO BLOB(mydoc; blob)
   BLOB TO USERS(blob)

However, user and group files generated in 4th Dimension starting with version 2004 cannot be opened with a previous version.

See Also

USERS TO BLOB.

System Variables or Sets

If the command has been executed correctly, the system variable OK is set to 1. Otherwise, it is set to 0.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next