Using Connect Enterprise Web Services |
|||
| Action reference > group-membership-update | |||
Breeze 4 and Breeze 5; Connect Enterprise Web Services 6
Adds one or more principals to a group, or removes one or more principals from a group.
To update multiple principals and groups, specify multiple trios of group-id, principal-id, and is-member parameters.
You can obtain a group-id by calling principal-list and filtering the response with filter-type=group or another filter value such as filter-type=admins. The built-in groups have distinctive types other than group (see type for a list of values).
http://server_name/api/xml?action=group-membership-update &group-id=integer&principal-id=integer&is-member=boolean&session=BreezeSessionCookieValue
|
Name |
Type |
Required |
Description |
|---|---|---|---|
group-id
|
Integer |
Y |
The ID of the group in which you want to add or change members. |
principal-id
|
Integer |
Y |
The ID of the principal whose membership status you want to update. Returned by |
is-member
|
Boolean |
Y |
Whether the principal is added to ( |
session
|
String |
N |
The value of the |
Results cannot be filtered or sorted.
<?xml version="1.0" encoding="utf-8" ?>
<results>
<status code=allowedValue />
</results>
|
Element |
Attribute |
Type |
Description |
|---|---|---|---|
|
|
Container |
Top-level element for the response. |
status
|
|
Empty, with attributes |
The status of the response. |
|
|
Allowed value |
A code indicating the response status (see status). |
https://example.com/api/xml?action=group-membership-update&group-id=632398
&principal-id=2006258745&is-member=true
<?xml version="1.0" encoding="utf-8" ?>
<results>
<status code="ok" />
</results>
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/breeze/6/xml_api/04a_ac11.htm