Search Results for

    Show / Hide Table of Contents

    Method UpdateGroups

    UpdateGroups(String, List<GroupContract>)

    Update a list of groups

    Declaration
    void UpdateGroups(string connectionId, List<GroupContract> groups)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.Collections.Generic.List<GroupContract> groups

    A list of groups to be updated

    Examples

    POST http://YourServerName/InfoShare/Json/Common/UpdateGroups

    This example updates a list of two groups.

    {
       "connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
       "groups": [{
         "UserIds": [ "0100a003-38a7-11d8-a902-0050bf427e8f", "172935af-62e0-e911-a94a-00155d290a08", 
           "2cd4ad99-bacf-e911-a939-00155d290a08"],
         "Name": "DemoGroup1",
         "Id": "b6aa9434-63e0-e911-a94a-00155d290a08",
         "DisplayName": "DemoGroup1",
         "SID": "S-1-5-21-515967899-920026266-1708537768-1000"
        }, {
         "UserIds": [ "0100b007-38a7-11d8-a902-0050bf427e8d", "172935af-62e0-e911-a94a-00155d290a08" ],
         "Name": "DemoGroup2",
         "Id": "b6aa9434-63e0-e911-a94a-00155d290b02",
         "DisplayName": "DemoGroup2",
         "SID": "S-1-5-21-515967899-920026266-1708537768-1000"
        }
       ] 
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Group not found {groupId} (10092)

    ServiceException

    The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    ServiceException

    Error occurred while processing {group} object {groups[i].Id} (10203)

    ServiceException

    ExternalUser must not be assigned to a group {0} (10372)

    ServiceException

    Deleted user {userName} must be not assigned to a group (10381)

    Back to top Copyright © Kendox