GET /api/groups/{GroupID}/members

Returns information about the members of the specified group. The information is returned in the form of an RSS channel.

Authorization Roles/Permissions: Must be logged in. Group member, group leader, Admin, Site Admin, or Business Admin

This topic includes the following sections:

HTTP Method

GET

Back to top

URL

https://{hostname}/api/groups/{GroupID}/members

Back to top

Sample Request

The example below shows a request for the group members for the specified group.

Request URL

https://{hostname}/api/groups/group19212.acmepaymentscorp/members

Sample request headers

GET /api/groups/group19212.acmepaymentscorp/members HTTP/1.1
Host: {hostname}
Accept: application/json, text/javascript, */*; q=0.01

Sample request body

Not applicable.

Back to top

Request Headers

For general information on request header values, refer to HTTP Request Headers.

Header Description
Accept text/xml or application/json
X-Csrf-Token_{fedmemberID} The CSRF prevention header; may or may not be required, depending on platform settings. See CSRF Prevention on the Platform. By default, the CSRF header is not required for GET operations and is required for all others, with a few exceptions relating to user login.

Back to top

Request Parameters

Parameter Parm Type Data Type Required Description
GroupID Path string Required The unique ID for a specific group.

Back to top

Response

If successful, this operation returns HTTP status code 200, with information about the group members in JSON or XML format.

Back to top

Sample Response

The sample response below shows information about the members of the specified group.

Sample response headers: application/json

HTTP/1.1 200 OK
Content-Type: application/json
Date: Sat, 08 Jun 2013 00:42:41 GMT

Sample response body: application/json

{
  "channel" : {
    "title" : "ACME Payments API UG",
    "description" : "ACME Payments API User Group",
    "item" : [ {
      "title" : "JaneSaoirse",
      "description" : "janesaoirse@acmepaymentscorp.com",
      "category" : [ {
        "value" : "com.soa.group.membership.state.approved",
        "domain" : "uddi:soa.com:status"
      }, {
        "value" : "com.soa.group.membership.role.admin",
        "domain" : "uddi:soa.com:role"
      } ],
      "guid" : {
        "value" : "522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp"
      },
      "Image" : {
        "Url" : "https://{hostname}/api/users/522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp/avatars/63352786-b8f0-4717-a35e-cebb480c5a56.png",
        "Link" : "../acmepaymentscorp#/user/522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp/details"
      }
    }, {
      "title" : "PhilipPirrip",
      "description" : "philip.pirrip@acmepaymentscorp.com",
      "category" : [ {
        "value" : "com.soa.group.membership.state.approved",
        "domain" : "uddi:soa.com:status"
      }, {
        "value" : "com.soa.group.membership.role.member",
        "domain" : "uddi:soa.com:role"
      } ],
      "guid" : {
        "value" : "2d0bc425-49ec-4c04-b272-cc8f6f20e52b.acmepaymentscorp"
      },
      "Image" : {
        "Url" : "https://{hostname}/api/users/2d0bc425-49ec-4c04-b272-cc8f6f20e52b.acmepaymentscorp/avatars/ce76ac4e-02db-47a3-a0d4-1f2e66a6cf3e.png",
        "Link" : "../acmepaymentscorp#/user/2d0bc425-49ec-4c04-b272-cc8f6f20e52b.acmepaymentscorp/details"
      }
    }, {
      "title" : "JonathanSwift",
      "description" : "jonathan.swift@acmepaymentscorp.com",
      "category" : [ {
        "value" : "com.soa.group.membership.state.approved",
        "domain" : "uddi:soa.com:status"
      }, {
        "value" : "com.soa.group.membership.role.leader",
        "domain" : "uddi:soa.com:role"
      } ],
      "guid" : {
        "value" : "957482b9-ck7f-0gk5-ae07-9flgok5djtus.acmepaymentscorp"
      },
      "Image" : {
        "Url" : "https://{hostname}/api/users/957482b9-ck7f-0gk5-ae07-9flgok5djtus.acmepaymentscorp/avatars/12d0fdd6-4707-4262-8c88-28ab3b5036c3.png",
        "Link" : "../acmepaymentscorp#/user/957482b9-ck7f-0gk5-ae07-9flgok5djtus.acmepaymentscorp/details"
      }
    }, {
      "title" : "JaneSaoirse",
      "description" : "janesaoirse@acmepaymentscorp.com",
      "category" : [ {
        "value" : "com.soa.group.membership.state.pending",
        "domain" : "uddi:soa.com:status"
      }, {
        "value" : "com.soa.group.membership.role.member",
        "domain" : "uddi:soa.com:role"
      } ],
      "guid" : {
        "value" : "522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp"
      },
      "Image" : {
        "Url" : "https://{hostname}/api/users/522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp/avatars/63352786-b8f0-4717-a35e-cebb480c5a56.png",
        "Link" : "../acmepaymentscorp#/user/522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp/details"
      }
    }, {
      "title" : "Joshie",
      "description" : "joshie@acmepaymentscorp.com",
      "category" : [ {
        "value" : "com.soa.group.membership.state.approved",
        "domain" : "uddi:soa.com:status"
      }, {
        "value" : "com.soa.group.membership.role.member",
        "domain" : "uddi:soa.com:role"
      } ],
      "guid" : {
        "value" : "user24566.acmepaymentscorp"
      },
      "Image" : {
        "Url" : "https://{hostname}/api/users/user24566.acmepaymentscorp/avatars/4fb36039-816b-4225-bf75-49e26351fc54.png",
        "Link" : "../acmepaymentscorp#/user/user24566.acmepaymentscorp/details"
      }
    }, {
      "title" : "JenniferMeadows",
      "description" : "jennifer.meadows@acmepaymentscorp.com",
      "category" : [ {
        "value" : "com.soa.group.membership.state.pending",
        "domain" : "uddi:soa.com:status"
      }, {
        "value" : "com.soa.group.membership.role.member",
        "domain" : "uddi:soa.com:role"
      } ],
      "guid" : {
        "value" : "d4e9b5d9-bd93-4c4e-acfd-bcf23527c729.acmepaymentscorp"
      },
      "Image" : {
        "Url" : "https://{hostname}/api/users/d4e9b5d9-bd93-4c4e-acfd-bcf23527c729.acmepaymentscorp/avatars/54855681-ba54-43f0-bc76-a300c4772b8b.png",
        "Link" : "../acmepaymentscorp#/user/d4e9b5d9-bd93-4c4e-acfd-bcf23527c729.acmepaymentscorp/details"
      }
    }, {
      "title" : "HiremP",
      "description" : "hpawnitoff@acmepaymentscorp.com",
      "category" : [ {
        "value" : "com.soa.group.membership.state.approved",
        "domain" : "uddi:soa.com:status"
      }, {
        "value" : "com.soa.group.membership.role.member",
        "domain" : "uddi:soa.com:role"
      } ],
      "guid" : {
        "value" : "user23913.acmepaymentscorp"
      },
      "Image" : {
        "Url" : "https://{hostname}/api/users/user23913.acmepaymentscorp/avatars/47875043-89d4-439a-a7d9-2cb4fe761f0d.png",
        "Link" : "../acmepaymentscorp#/user/user23913.acmepaymentscorp/details"
      }
    }, {
      "description" : "emer8008@hotmail.com",
      "category" : [ {
        "value" : "com.soa.group.membership.state.pending",
        "domain" : "uddi:soa.com:status"
      }, {
        "value" : "com.soa.group.membership.role.member",
        "domain" : "uddi:soa.com:role"
      } ],
      "guid" : {
        "value" : "user24563.acmepaymentscorp"
      },
      "Image" : {
        "Url" : "https://{hostname}/api/users/user24563.acmepaymentscorp/avatar",
        "Link" : "../acmepaymentscorp#/user/user24563.acmepaymentscorp/details"
      }
    } ]
  },
  "version" : "1.0"
}

Back to top

Sample response headers: application/xml

HTTP/1.1 200 OK
Content-Type: application/json
Date: Sat, 08 Jun 2013 00:42:41 GMT

Sample response body: application/xml

<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:ns2="http://soa.com/xsd/business/1.0" xmlns:ns3="http://soa.com/xsd/user/1.0" xmlns:ns4="http://soa.com/xsd/rss/1.0" 
xmlns:ns5="http://soa.com/xsd/comment/1.0" xmlns:ns6="http://a9.com/-/spec/opensearch/1.1/" xmlns:ns7="http://soa.com/xsd/resource/1.0" 
xmlns:ns8="http://soa.com/xsd/fault/1.0" xmlns:ns9="http://soa.com/xsd/api/1.0" xmlns:ns10="http://soa.com/xsd/board/1.0" version="1.0">
  <channel>
    <title>ACME Payments API UG</title>
    <description>ACME Payments API User Group</description>
    <item>
      <title>JaneSaoirse</title>
      <description>janesaoirse@acmepaymentscorp.com</description>
      <category domain="uddi:soa.com:status">com.soa.group.membership.state.approved</category>
      <category domain="uddi:soa.com:role">com.soa.group.membership.role.admin</category>
      <guid>522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp</guid>
      <ns4:Image>
        <Url>https://{hostname}/api/users/522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp/avatars/63352786-b8f0-4717-a35e-cebb480c5a56.png</Url>
        <Link>../acmepaymentscorp#/user/522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp/details</Link>
      </ns4:Image>
    </item>
    <item>
      <title>PhilipPirrip</title>
      <description>philip.pirrip@acmepaymentscorp.com</description>
      <category domain="uddi:soa.com:status">com.soa.group.membership.state.approved</category>
      <category domain="uddi:soa.com:role">com.soa.group.membership.role.member</category>
      <guid>2d0bc425-49ec-4c04-b272-cc8f6f20e52b.acmepaymentscorp</guid>
      <ns4:Image>
        <Url>https://{hostname}/api/users/2d0bc425-49ec-4c04-b272-cc8f6f20e52b.acmepaymentscorp/avatars/ce76ac4e-02db-47a3-a0d4-1f2e66a6cf3e.png</Url>
        <Link>../acmepaymentscorp#/user/2d0bc425-49ec-4c04-b272-cc8f6f20e52b.acmepaymentscorp/details</Link>
      </ns4:Image>
    </item>
    <item>
      <title>JonathanSwift</title>
      <description>jonathan.swift@acmepaymentscorp.com</description>
      <category domain="uddi:soa.com:status">com.soa.group.membership.state.approved</category>
      <category domain="uddi:soa.com:role">com.soa.group.membership.role.leader</category>
      <guid>957482b9-ck7f-0gk5-ae07-9flgok5djtus.acmepaymentscorp</guid>
      <ns4:Image>
        <Url>https://{hostname}/api/users/957482b9-ck7f-0gk5-ae07-9flgok5djtus.acmepaymentscorp/avatars/12d0fdd6-4707-4262-8c88-28ab3b5036c3.png</Url>
        <Link>../acmepaymentscorp#/user/957482b9-ck7f-0gk5-ae07-9flgok5djtus.acmepaymentscorp/details</Link>
      </ns4:Image>
    </item>
    <item>
      <title>JaneSaoirse</title>
      <description>janesaoirse@acmepaymentscorp.com</description>
      <category domain="uddi:soa.com:status">com.soa.group.membership.state.pending</category>
      <category domain="uddi:soa.com:role">com.soa.group.membership.role.member</category>
      <guid>522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp</guid>
      <ns4:Image>
        <Url>https://{hostname}/api/users/522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp/avatars/63352786-b8f0-4717-a35e-cebb480c5a56.png</Url>
        <Link>../acmepaymentscorp#/user/522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp/details</Link>
      </ns4:Image>
    </item>
    <item>
      <title>Joshie</title>
      <description>joshie@acmepaymentscorp.com</description>
      <category domain="uddi:soa.com:status">com.soa.group.membership.state.approved</category>
      <category domain="uddi:soa.com:role">com.soa.group.membership.role.member</category>
      <guid>user24566.acmepaymentscorp</guid>
      <ns4:Image>
        <Url>https://{hostname}/api/users/user24566.acmepaymentscorp/avatars/4fb36039-816b-4225-bf75-49e26351fc54.png</Url>
        <Link>../acmepaymentscorp#/user/user24566.acmepaymentscorp/details</Link>
      </ns4:Image>
    </item>
    <item>
      <title>JenniferMeadows</title>
      <description>jennifer.meadows@acmepaymentscorp.com</description>
      <category domain="uddi:soa.com:status">com.soa.group.membership.state.pending</category>
      <category domain="uddi:soa.com:role">com.soa.group.membership.role.member</category>
      <guid>d4e9b5d9-bd93-4c4e-acfd-bcf23527c729.acmepaymentscorp</guid>
      <ns4:Image>
        <Url>https://{hostname}/api/users/d4e9b5d9-bd93-4c4e-acfd-bcf23527c729.acmepaymentscorp/avatars/54855681-ba54-43f0-bc76-a300c4772b8b.png</Url>
        <Link>../acmepaymentscorp#/user/d4e9b5d9-bd93-4c4e-acfd-bcf23527c729.acmepaymentscorp/details</Link>
      </ns4:Image>
    </item>
    <item>
      <title>HiremP</title>
      <description>hpawnitoff@acmepaymentscorp.com</description>
      <category domain="uddi:soa.com:status">com.soa.group.membership.state.approved</category>
      <category domain="uddi:soa.com:role">com.soa.group.membership.role.member</category>
      <guid>user23913.acmepaymentscorp</guid>
      <ns4:Image>
        <Url>https://{hostname}/api/users/user23913.acmepaymentscorp/avatars/47875043-89d4-439a-a7d9-2cb4fe761f0d.png</Url>
        <Link>../acmepaymentscorp#/user/user23913.acmepaymentscorp/details</Link>
      </ns4:Image>
    </item>
    <item>
      <description>emer8008@hotmail.com</description>
      <category domain="uddi:soa.com:status">com.soa.group.membership.state.pending</category>
      <category domain="uddi:soa.com:role">com.soa.group.membership.role.member</category>
      <guid>user24563.acmepaymentscorp</guid>
      <ns4:Image>
        <Url>https://{hostname}/api/users/user24563.acmepaymentscorp/avatar</Url>
        <Link>../acmepaymentscorp#/user/user24563.acmepaymentscorp/details</Link>
      </ns4:Image>
    </item>
  </channel>
</rss>

Back to top

Response Headers

For general information on response header values, refer to HTTP Response Headers.

Header Description
Content-Type text/xml or application/json

Back to top

Response Body

The response body is in the form of an RSS channel, and includes the items listed below. The RSS version is 1.0. The RSS channel includes title, which is the GroupID of the group for which member information is being returned, and description, which is the text description of the group. Each item in the channel represents one group member, and includes the information listed below.

Note: Many of the values returned in the RSS channel correspond to values in the Membership object in the Groups service, as noted below.

Name Description
title The group member's username (UserName in the Membership object).
description The group member's email address (Email in the Membership object).
category

An array of sets of name/value pairs containing information about the group member. For example:

"value" : "com.soa.group.membership.state.approved",
"domain" : "uddi:soa.com:status"

The example above indicates the user's group membership state (State in the Membership object).

"value" : "com.soa.group.membership.role.admin",
"domain" : "uddi:soa.com:role"

The example above indicates the user's role in the group (Role in the Membership object).

guid The unique ID for the item; in this case, the group member's UserID (UserID in the Membership object).
Image

Information about the avatar set up for the user; a set of two name/value pairs, URL and Link. If the user hasn't uploaded an image, the URL to the default user image is included. An example is shown below.

"Url" : "https://{hostname}/api/users/522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp/avatars/63352786-b8f0-4717-a35e-cebb480c5a56.png",
"Link" : "../acmepaymentscorp#/user/522320b9-cb6b-495d-ae07-e4b3bfdb3f6a.acmepaymentscorp/details"

Back to top

Error Codes/Messages

If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.

Item Value
401 Unauthorized. For example, you would get this response if you didn't include the custom X-Csrf-Token_{fedmemberID} header in the request, when it was required by the platform settings; or if you included an invalid or expired value for this header. You would also get this response for any operation that requires login (almost all) if the login cookie was missing.
405 Method Not Allowed. For example, you might get this if you specified an invalid Accept header or omitted a required Content-Type header, or used the wrong HTTP verb.
500 An error occurred processing the call.

More information about Akana API Platform API error messages.

Back to top

Related Topics