Search Results for

    Show / Hide Table of Contents

    Method CreateGroup

    CreateGroup(String, GroupContract)

    Create a group

    Declaration
    string CreateGroup(string connectionId, GroupContract group)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    GroupContract group

    Group to create

    Returns
    Type Description
    System.String

    The created group id

    Examples

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

    Example for create a group.

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

    Response:

    {
       "CreateGroupResult": "b6aa9434-63e0-e911-a94a-00155d290a08"
    }
    Exceptions
    Type Condition
    ServiceException

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

    ServiceException

    Group already exists {groupName} (10048)

    ServiceException

    Object with id {id} already exists (10078)

    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

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

    Back to top Copyright © Kendox