I can run the following script to gather a list of users in my database: |
Re: User Attributes
You can write a program that browses all the users, and for those that do not yet have a createdDate associated with them then set it to that value. If that script runs everyday you can indeed keep track of create date, from the time of the script forward.
for property in user for property in user do {...}
isAttribute (user) bool isAttribute(User user, string property)
delete (user property) void delete(User user, string property)
get (user property) string get(User user, string property)
set (user property) void set(User user, string property, string value)
string c_NameCreatedDate = "Created On"
User usr = find(NameUser)
if (!isAttribute(usr, c_NameCreatedDate) or
null get(usr, c_NameCreatedDate)) //-
then set(usr, c_NameCreatedDate, today())
loadDirectory()
string Created, Name
for usr in userList do
{ if (!isAttribute(usr, c_NameCreatedDate) or
null get(usr, c_NameCreatedDate)) //-
then Created = "Unknown"
else Created = get(usr,c_NameCreatedDate)
Name = usr.name
print Name "\tCreate On " Created "\n"
}
|
Re: User Attributes |
Re: User Attributes Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: User Attributes 1. Obtain the hexadecimal IDs (User.identifier) of existing users 2. Find the corresponding config files on the server (e.g \v6data\users\u00000000000000b7.DTC) 3. Consult the file creation date of each user's DTC file 4. Store the dates in a user-defined user attribute (see Louie's comment above) Obviously the "last modified date" can also be obtained this way. Paul |
Re: User Attributes |