VLF-ONE : How to retrieve Users and Groups

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
Gilamonster
Posts: 11
Joined: Thu Nov 26, 2015 3:11 am
Location: France

VLF-ONE : How to retrieve Users and Groups

Post by Gilamonster »

Is there a way unsing VLF methods to retrieve a list of Users and Groups defined in VLF-ONE (ie : File VFPPP06) ?

By example with VLF Win I was able to retrieve the Groups belongings to User connected using the code below :

Code: Select all

Mthroutine Name(uGetGroupsUser) 
Define_Com Class(#vf_FP005) Name(#CurrentUser) Reference(*Dynamic) 
Define_Com Class(#vf_FP005) Name(#GroupUser) Reference(*Dynamic) 
Define_Com Class(#std_Num) Name(#LoopLimit) 
Define_Com Class(#std_Num) Name(#LoopIndex) 
Define_Com Class(#vf_elidn) Name(#GroupUserGUID) 
 
#CurrentUser <= #uSystem.uUser 

#LoopLimit := #CurrentUser.uInUserGroupMax 

Begin_Loop Using(#LoopIndex) To(#LoopLimit) 


* Get the GUID of the associated group user and convert to an object reference 
#GroupUserGUID := #CurrentUser.uInUserGroup<#LoopIndex> 
#GroupUser <= #uSystem.uUserContainer.uUserProfile<#GroupUserGUID> 
.....

End_Loop 

Endroutine 
but it seems that such methods are not available in VLF-ONE.
Do we need to do this directly acess on file VFPP06 ?
Any idea will be welcome.
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: VLF-ONE : How to retrieve Users and Groups

Post by MarkD »

Neither the user nor the group information is not available in the VLF-ONE client.
Post Reply