Share via


Computer Management Provider::Group Members

The Group Members method returns a list of the members of a specified group.

Arguments

Input argument Required Description

Group

Yes

The full WinNT path to the group for which the membership should be enumerated.

For valid WinNT path specifications, see Definition of Terms for the Computer Management Provider API [HMC SDK].

[username]

No

The username to be used when connecting to the server. This parameter is the "key" parameter for using declarative authentication, meaning that if this value is present, the password and domain are then required. If this value is not present, values for the other two nodes will be ignored.

[password]

No

The password of the user connecting to the server. If username is provided, this value is required; otherwise it is ignored.

[domain]

No

The domain to use in conjunction with the username above. If username is provided, this value is required; otherwise it is ignored.

Output argument Description

Members

A collection of member nodes containing the members of the specified group.

Member

The WinNT path to the object that is a member of the specified group.

Remarks

Rollback

The Group Members method is read-only, therefore it is unnecessary to implement rollback.

Sample Code

Example XML Request

The following is an example of an XML request for the Group Members method of the Computer Manager Provider:

<request> 
        <procedure> 
                <execute namespace="Computer Management Provider" procedure="Group Members"> 
                        <executeData> 
                        <group>WinNT://Fabrikam/Web01/MyGroup</group> 
                        </executeData> 
                </execute> 
        </procedure> 
</request> 

Example XML Response

The following is an example of an XML response for the Group Members method of the Computer Manager Provider:

<response> 
        <data> 
                <members> 
                        <member>WinNT://Fabrikam/Web01/SampleUser</member> 
                        <member>WinNT://Fabrikam/Web01/SampleUser2</member> 
                </members> 
        </data> 
</response> 

Applies To

Computer Management Provider API for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

  • Hosted Messaging and Collaboration version 3.5

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

Computer Management Provider::Group IsMember