List all members of a group?

You can share your Lua Scripts with everybody here.

List all members of a group?

Postby Rusty » Mon Feb 09, 2015 6:46 pm

Using the GUI, I wish there was a way to see a member list of users from within the properties of a group. Failing that, can you provide a script that would enumerate all the users within a given group?
Rusty
 
3
 
Fri Feb 01, 2013 8:07 pm

Re: List all members of a group?

Postby FTP » Wed Feb 11, 2015 4:16 am

You can list all members like this:

Code: Select all
local userlist = c_GetGroup("domain1", "group111").userlist
for _,user in pairs(userlist) do
    print(user.username)
    print("\n")
end


And we will consider to add this feature in the next version of Wing FTP Server.
FTP
Site Admin
 
1876
 
Tue Sep 29, 2009 6:09 am


Return to Lua scripts

Who is online

Users browsing this forum: No registered users and 2 guests