This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
GET USER PROPERTIES
|
GET USER PROPERTIES ( userID ; name ; startup ; password ; nbLogin ; lastLogin {; memberships {; groupOwner}} ) | ||||||||
Parameter | Type | Description | ||||||
userID | Longint |
![]() |
Unique user ID number | |||||
name | String |
![]() |
Name of the user | |||||
startup | String |
![]() |
Startup method name | |||||
password | String |
![]() |
Always an empty string | |||||
nbLogin | Longint |
![]() |
Number of logins to the database (Binary databases only) | |||||
lastLogin | Date |
![]() |
Date of last login to the database (Binary databases only) | |||||
memberships | Longint array |
![]() |
ID numbers of groups to which the user belongs | |||||
groupOwner | Longint |
![]() |
ID number of user group owner (Binary databases only) | |||||
GET USER PROPERTIES returns the information about the user whose unique user ID number you pass in userID. You must pass a valid user ID number returned by the GET USER LIST command.
If the user account does not exist or has been deleted, the error -9979 is generated. You can catch this error with an error-handling method installed using ON ERR CALL. Otherwise, you can call Is user deleted to test the user account before calling GET USER PROPERTIES.
After the call, you retrieve the name, startup method, number of logins and date of last login for the user, in the parameters name, startup, nbLogin and lastLogin.
Notes:
If you pass the optional memberships parameter, the unique ID numbers of the groups to which the user belongs are returned.
(Binary databases only) You can pass the optional groupOwner parameter to get the ID number of the user group “owner”, i.e. the default owner group of the objects created by this user.
Note: The groupOwner array always returns 0 values in project databases.
Note for binary databases: Group and user ID values depend on their creator (Designer, Administrator, or affiliated group owner). For more information, please refer to the User and group ID ranges paragraph.
If you do not have the proper access privileges for calling GET USER PROPERTIES or if the Password system is already accessed by another process, an access privilege error is generated. You can catch this error with an error-handling method installed using ON ERR CALL.
GET GROUP LIST
GET USER LIST
Is user deleted
Set user properties
Validate password
Product: 4D
Theme: Users and Groups
Number:
611
Modified: 4D 2004
4D Language Reference ( 4D v20 R7)