../pvss.htm menu.gif basics.gif

getOSGroupUsers()

Returns all users of a group.

Synopsis

dyn_mapping getOSGroupUsers(string groupName);

Parameters

    Parameters

    Description

    groupName

    The group name.

Return value

Users of a group.

Description

Returns all users of a group. Only users of a domain are returned (no local users).

 

The attributes are saved in a mapping with the following keys:
"Name"
; : Name of the user (Account name)

"FullName": Whole name of the user (Display name)
"Comment"
: Description of the user
"OSID"
: Operating system ID

"Comment"
; has a meaning only under Windows. "OSID" may return another value for Unix systems than for Windows systems in an ActiveDirectory environment since Unix (for example, Samba) maps the Windows specific ID (SID) into a Unix specific ID (unsigned).

IconExample

Returns all users of the group "ETM".

main()
{
  dyn_mapping grUsers;
  string groupName = "ETM";
  grUsers= getOSGroupUsers(groupName);
  DebugN("Users of the group ETM ", grUsers);
}

 

Member of

User administration

Availability

UI

See also

    getOSGroupID(), getOSGroupInfo(), getOSGroupName(), getOSGroups(), getOSUserGroups(), getOSUserID(), getOSUserInfo(), getOSUserName()

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved