Search Results for

    Show / Hide Table of Contents

    Method GetUserSimple

    GetUserSimple(String, String)

    Get user simple information of this server

    Declaration
    UserSimpleContract GetUserSimple(string connectionId, string userId)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String userId

    The user id

    Returns
    Type Description
    UserSimpleContract

    Current user simple

    Examples

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

    Example for get user simple information of this server.

    {
       "connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
       "userId": "2cd4ad99-bacf-e911-a939-00155d290a08"
    }

    Response:

    {
       "GetUserSimpleResult": {
            "DisplayName": "test user",
            "Id": "6690060d-cd23-e911-94dd-00155d051001",
            "LoginName": "test" }
    }
    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)

    ServiceException

    User not found {userId} (10047)

    Back to top Copyright © Kendox