08-18-2006 02:01 AM
08-18-2006 06:30 PM
08-22-2006 05:56 AM
Hi Ricks,
I was also trying in the same method as mentioned in the knowledge base article.
I'll briefly enumerate what I did :
1) Call Engine.GetUserGroup method to get the object reference of a particular group.
2) With the object reference above, use the User.Members method to get the Property Object Reference to the members of that group.
3) I then tried to get the number of users in that particular group and I got correct results.
4) I then used PropertyObject.GetPropertyObjectbyOffset to return a object reference and it is stored in the 'Locals.UserObject' variable
5) With the reference from step 4, I tried 'User.LoginName' property to get the Login name of the first member in the group. But I get an error
saying
"Details : Incorrect Object Reference type in 'Locals.UserObject'. A reference to an object of type 'User' was expected.
Error Code : -17308; Specified value does not have the expected type. "
What is the mistake in the above steps ?
Thanks in advance,
Sahana.
08-22-2006 11:28 AM - edited 08-22-2006 11:28 AM
Sahana -
The PropertyObject.GetPropertyObjectbyOffset method is returning a reference to the "reference property object". You could call PropertyObject.GetValInterface on what the above method returns, or instead just call PopertyObject.GetValInterfaceByOffset instead of PropertyObject.GetPropertyObjectbyOffset.
Message Edited by Scott Richardson on 08-22-2006 11:30 AM
08-24-2006 06:49 AM
Hi all,
Is there any way to gray out the group privileges in the NewUser or EditUser dialog when adding an user and configuring a new user as only an operator?
Thanks in advance,
Sahana
08-25-2006 06:42 PM