Version 3 Technical Highlights - User_Sub

Published ByDateVersionKnowledge LevelKeywords
Sprezzatura Ltd01 OCT 19923.0+EXPERTUSER_SUB, SYSCONFIGURE

A subroutine with four parameters which permits the developer to manipulate users from within any account on the system. Parameters are Action, UserName, UserRecord, Flag.

The code for the action to be taken. Values identified thus far are

0Creates a new user. Needs user name in UserName, account to create user for in Record and returns a result flag in Flag. Flag can have the following values

0 User created successfully
2 Record exists but is not a user record
7 Unable to create user (user already exists, account does not exist, not a valid account etc.)
1Modifies an existing user record. Needs user name in UserName, new record (or partial record) in Record and returns result flag in Flag. Flag can have the following values

0 User modified successfully
2 Record exists but is not a user record
3 Record does not exist
2Read a user record. Needs User name in UserName and returns user record in Record and result flag in Flag. Flag can have the following values

0 Record read successfully
2 Record exists but is not a user record
3 Record does not exist
3Deletes a user record. Needs user name in UserName and returns user record in Record and result flag in Flag. Flag can have the following values

0 Record deleted successfully
2 Record exists but is not a user record
3 Record does not exist

Note that codes other than the above return an error flag of 4. With Code 0 1 or 3, an interesting side effect is that if UserName contains a non-user record, but still a record that exists on SYSCONFIGURE, then Record returns the record even though the error flag is set. This could be used to good effect to read records from SYSCONFIGURE from a non-Sysprog account.

(Volume 4, Issue 5, Page 11)

  • tips/revmedia/v4i5a5.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1