Search Results for

    Show / Hide Table of Contents

    Method SetUserPasswordHashed

    SetUserPasswordHashed(String, String, String)

    Set password for a specific user. Password requirements has to be tested on client!

    Declaration
    void SetUserPasswordHashed(string connectionId, string userId, string newPasswordHashed)
    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 newPasswordHashed

    Password to set (Base64 encoded SHA 512 Hash)

    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 "Access to security edit access right" access right (01002050-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)
    Examples

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

    Example for set password for a specific user.

    {
       "connectionId": "2e926e26-4e7f-4bf5-be15-673af621819e",
       "userId": "0100a003-38a7-11d8-a902-0050bf427e8f",
       "newPasswordHashed": "newTestPassword"
    }

    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