Get list of users within a group
Keywords: users members list n4ObjectProps
Question:
I need a list of users within a group on a Netware 4 server. How can I retrieve this information with winbatch?I tried using the example in the Netware Extender help file, under the function n4ObjectList, but it is not returning a list of users. It is returning a blank string. Example code:
AddExtender("wwn4x34I.dll") ;Get a list of users within a group on a Novell Netware 4 server objects = n4ObjectList("", "Group", "User", "") askitemlist( "List of users within a group",objects, @tab, @sorted, @single)Any help?Answer:
The function n4ObjectList cannot get a list of users within a group. It can get a list of users within a specific context as follows:AddExtender("wwn4x34I.dll") ;Get a list of users on a Novell Netware 4 server objects = n4ObjectList("", "User", "", "") askitemlist( "List of users",objects, @tab, @sorted, @single)If you need to get a list of users (really MEMBERS) with in a particular group, use the function n4ObjectProps. Here is an example:
AddExtender("wwn4x34I.dll") members = n4ObjectProps("", "Everyone", "Member") askitemlist=("Members", members, @TAB, @sorted, @single)
Article ID: W13600Filename: Get list of users within a group.txt