group-membership-update

Availability

Breeze 4 and Breeze 5; Connect Enterprise Web Services 6

Description

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).

Request URL

http://server_name/api/xml
    ?action=group-membership-update
    &group-id=integer
    &principal-id=integer
    &is-member=boolean
    &session=BreezeSessionCookieValue

Parameters

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 principal-info.

is-member

Boolean

Y

Whether the principal is added to (true) or deleted from (false) the group.

session

String

N

The value of the BREEZESESSION cookie. Use this parameter if you do not use a client-side cookie management library.

Filters

Results cannot be filtered or sorted.

Response structure

<?xml version="1.0" encoding="utf-8" ?>
<results>
    <status code=allowedValue />
</results>

Response values

Element

Attribute

Type

Description

results  

Container

Top-level element for the response.

status  

Empty, with attributes

The status of the response.

  code

Allowed value

A code indicating the response status (see status).

Sample request

https://example.com/api/xml?action=group-membership-update&group-id=632398
    &principal-id=2006258745&is-member=true

Sample response

<?xml version="1.0" encoding="utf-8" ?> 
<results> 
    <status code="ok" /> 
</results>


Take a survey


 

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