4D v13.4

BLOB TO USERS

Home

 
4D v13.4
BLOB TO USERS

BLOB TO USERS 


 

BLOB TO USERS ( users ) 
Parameter Type   Description
users  BLOB in BLOB (encrypted) containing database user accounts created and saved by the database Administrator

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 4D prior to 2004 can be loaded in 4D version 2004 and higher using the following sequence:

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

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

 
PROPERTIES 

Product: 4D
Theme: Users and Groups
Number: 850

The OK variable is changed by the command

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D 2004

 
SEE ALSO 

USERS TO BLOB