Search Results for

    Show / Hide Table of Contents

    Method GetUsersSimple

    GetUsersSimple(String, List<String>)

    Get users simple information of this server

    Declaration
    UserSimpleResultContract GetUsersSimple(string connectionId, List<string> userIds)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.Collections.Generic.List<System.String> userIds

    The list of user ids

    Returns
    Type Description
    UserSimpleResultContract

    Get users simple

    Examples

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

    Example for get users simple information of this server.

    {
       "connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
       "userId": ["2cd4ad99-bacf-e911-a939-00155d290a08","77742bb8-ef97-44ae-819b-a2fa22009089b"]

    Response:

    {
       "GetUsersSimpleResult": {
            "SessionCount": 16613,
            "Users": [
            {
                "DisplayName": "test user",
                "Id": "6690060d-cd23-e911-94dd-00155d051001",
                "LoginName": "rest"
            },
            {
                "DisplayName": "sdsd",
                "Id": "0980f125-2ae9-eb11-952a-00155d051001",
                "LoginName": "__testerg5638"
            } ]
          }
    }
    Exceptions
    Type Condition
    ServiceException

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

    ServiceException

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

    ServiceException

    Two way authentication type ({twoWayAuthenticationType}) is invalid. Valid types are: {allowedTwoWayAuthenticationTypes} (10148)

    ServiceException

    Could not parse int {flag} to a valid two way authentication type (10154)

    Back to top Copyright © Kendox