4D v16.3

BLOB TO USERS

Home

 
4D v16.3
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 replaces the user accounts and groups created by the Administrator in the database with the ones found in the BLOB users. 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.

This command causes the replacement of any existing accounts and groups created by the Administrator in the database. If the BLOB users contains valid data, the command performs the following operations:

  • all users and groups defined in the database whose reference numbers are negative (groups and users created by the Administrator) are removed from the structure,
  • all users and groups found in the BLOB users are added to the structure.

Compatibility note: User and group files (.4UG extension) created by the Save Groups... menu command in previous 4D versions can be loaded in 4D using the following sequence (very old 4D versions may require to use intermediary versions):

 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.



See also 

USERS TO BLOB

 
PROPERTIES 

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

The OK variable is changed by the command

 
HISTORY 

Created: 4D 2004

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)