Search Results for

    Show / Hide Table of Contents

    Method SetUserPassword

    SetUserPassword(String, String, String)

    Set password for a specific user

    Declaration
    void SetUserPassword(string connectionId, string userId, string newPassword)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String userId

    The user id. See also Id

    System.String newPassword

    Password to set

    Remarks
    • New password must fulfill system password requirements. See also PasswordConfigurationContract
    • You need "Access to users and user groups" access right (01002040-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
    • You need "Reset user password" access right (01002059-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
    • You need "Access to security edit access right" access right (01002050-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
    Examples

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

    Example for set password for specific user.

    {
       "connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
       "userId": "172935af-62e0-e911-a94a-00155d290a08",
       "newPassword": "/p9lYxRyTZqKx4Xk2gDOeRaEjUBqHbTNNoFh0XUdL48uw616KSA5vm5SSypfOhXdrV3aci1Zyt14je4ndwmx9A=="
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

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

    ServiceException

    Not enough rights ({accessOperationName}, {accessOperationId}) (10071)

    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

    Only the DCIAdmin user can set the password for the DCIAdmin user (10369)

    Back to top Copyright © Kendox