Share via


GetRoleCollectionFromGroup Method

The GetRoleCollectionFromGroup method of the Users and Groups service returns information about the collection of site groups of which the specified cross-site group is a member.

Parameters

groupName   A string that contains the name of the cross-site group.

Return Value

An XML fragment in the following form that can be assigned to a System.Xml.XmlNode object:

<GetRoleCollectionFromGroup xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/">
   <Roles>
      <Role ID="1073741830" Name="Site_Group1" Description="Description" Type="0" />
      <Role ID="1073741833" Name="Site_Group2" Description="Description" Type="0" />
      .
      .
      .
</Roles></GetRoleCollectionFromGroup>

Example

The following code example displays the collection of site groups of which the cross-site group is a member.

This example requires that a using (C#) or Imports (Visual Basic .NET) directive be included for the System.Xml namespace.

Requirements

Platforms: Microsoft Windows Server 2003

Web Reference: http://Server_Name/[sites/][Site_Name/]_vti_bin/UserGroup.asmx