Adding a member to a group – Google Search Appliance Policy ACL API Developers Guide User Manual

Page 21

Advertising
background image

Google Search Appliance: Policy ACL API Developer’s Guide

Policy ACL API Developer’s Guide

21

The XML code that follows shows a sample API response for a request to retrieve all groups for a
domain. Because the emailPermission and description properties are not supported by the search
appliance, the values are specified as an empty string ("").

<?xml version="1.0" encoding="UTF-8"?>
<atom:feed xmlns:atom="http://www.w3.org/2005/Atom"

xmlns:apps="http://schemas.google.com/apps/2006"
xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">
<atom:id>http://gsa.example.com:8000/a/feeds/group/2.0/domain</atom:id>
<atom:updated>2008-12-03T16:33:05.260Z</atom:updated>
<atom:link href="http://gsa.example.com:8000/a/feeds/group/2.0/domain"

type="application/atom+xml" rel="http://schemas.google.com/g/2005#feed"></

atom:link>

<atom:link href="http://gsa.example.com:8000/a/feeds/group/2.0/domain"

type="application/atom+xml" rel="http://schemas.google.com/g/2005#post"></

atom:link>

<atom:link href="http://gsa.example.com:8000/a/feeds/group/2.0/domain"

type="application/atom+xml" rel="self"></atom:link>

<openSearch:startIndex>1</openSearch:startIndex>
<atom:entry>

<id>http://gsa.example.com:8000/a/feeds/group/2.0/domain/us-sales%40domain</

id>

<atom:updated>2008-12-03T16:33:05.261Z</atom:updated>
<atom:link href="http://gsa.example.com:8000/a/feeds/group/2.0/domain/us-

sales%40domain"

type="application/atom+xml" rel="self"></atom:link>

<atom:link href="http://gsa.example.com:8000/a/feeds/group/2.0/domain/us-

sales%40domain"

type="application/atom+xml" rel="edit"></atom:link>

<apps:property name="groupId" value="us-sales"></apps:property>
<apps:property name="groupName" value="us-sales"></apps:property>
<apps:property name="emailPermission" value=""></apps:property>
<apps:property name="description" value=""></apps:property>

</atom:entry>
<atom:entry>

<atom:id>http://gsa.example.com:8000/a/feeds/group/2.0/domain/Staff-

2435%40domain</atom:id>

<atom:updated>2008-12-03T16:33:05.260Z</atom:updated>
<atom:link href="http://gsa.example.com:8000/a/feeds/group/2.0/domain/Staff-

2435%40domain"

type="application/atom+xml" rel="self"></atom:link>

<atom:link href="http://gsa.example.com:8000/a/feeds/group/2.0/domain/Staff-

2435%40domain"

type="application/atom+xml" rel="edit"></atom:link>

<apps:property name="groupId" value="Staff-2435@domain"</apps:property>
<apps:property name="groupName" value="Staff-2435@domain"</apps:property>
<apps:property name="emailPermission" value=""</apps:property>
<apps:property name="description" value=""></apps:property>

</atom:entry>
<atom:entry>
...
</atom:entry>

</atom:feed>

Adding a Member to a Group

To add a member to a group, use the following POST request:

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

Advertising