beautypg.com

Retrieving group members, Removing members from a group, Sample memberentry request – Google Search Appliance Policy ACL API Developers Guide User Manual

Page 22: Sample memberentry response

background image

Google Search Appliance: Policy ACL API Developer’s Guide

Policy ACL API Developer’s Guide

22

Retrieving Group Members

To retrieve all members of a group, use the following GET request:

GET http://Search_Appliance:8000/a/feeds/group/2.0/domain/groupId/
member[?[start-index=]]

To retrieve a particular member of a group, use the following GET request:

GET http://Search_Appliance:8000/a/feeds/group/2.0/domain/groupId/member/
memberId

Removing Members From a Group

To remove a group member, use the following DELETE request:

DELETE http://Search_Appliance:8000/a/feeds/group/2.0/domain/groupId/member/
memberId

Sample MemberEntry Request

The following XML shows a sample request to add a member to a group. The XML uses the memberId
property to specify the member and the memberType property to specify the type of member, which can
be user or group.


xmlns:apps="http://schemas.google.com/apps/2006"
xmlns:gd="http://schemas.google.com/g/2005">
[email protected]"/>

If memberType is not specified and the member being added already exists as a group, then the member
will be added as a group member, as in the following request:


xmlns:apps="http://schemas.google.com/apps/2006"
xmlns:gd=’http://schemas.google.com/g/2005">
[email protected]"/>

Here [email protected] already exists as a group.

Sample MemberEntry Response

When you submit a request to add a member to a group, the Group API returns an XML response that
identifies the newly added member. Following a request to add a member to a group, this object does
not serve any purpose except to confirm that the request was successful.