EditUser

Description

This method is used to edit a professional's user details for a given username. Exceptions are thrown if the input values for all mandatory fields are not filled with valid data. If optional field inputs are not provided, the database updates these fields with null values. A Boolean value output indicates whether the edit is successful.

This method is only available for admin users of the company.


Request

Parameter

Type

Mandatory/Optional

Maximum character length/limit

Description

input

EditUserInput

Mandatory

Not relevant

Model that contains details of the user being edited

applicationNamestringMandatoryShould be less than or equal to 10 charactersThe name of the integration partner


Request - sample input

<EditUser>
  <MethodParameters>
    <UserAuthentication>
      <UserName>username</UserName>
      <Password>password</Password>
      <AnyAttr attr0="XmlAttributeArray" isNull="false">
        <XmlAttributeArray0>System.Xml.XmlAttribute</XmlAttributeArray0>
      </AnyAttr>
    </UserAuthentication>
    <input>
      <UserName>charlizeT</UserName>
      <FirstName>Charlize</FirstName>
      <LastName>Theron</LastName>
      <Email>charlize@boligmappa.no</Email>
      <IsActive>False</IsActive>
      <TelephoneNumber isNull="false" />
      <UserRole>1</UserRole>
      <Profession>1</Profession>
      <Specializations>1</Specializations>
      <IsAuthorizedtoUseFinnit>False</IsAuthorizedtoUseFinnit>
    </input>
    <applicationName>test</applicationName>
  </MethodParameters>
</EditUser>

Response

Type

Description

EditUserOutput

The Boolean value indicates the edit is successful


Response - sample output

<EditUser>
  <MethodParameters>
    <EditUserOutput>
      <IsEditSuccessful>True</IsEditSuccessful>
    </EditUserOutput>
  </MethodParameters>
</EditUser>

Exceptions

Error Code

Description

113

One or more mandatory fields have not been provided 

123

An exception occurred while processing your request

165The given profession is not registered to your company

167

You are not authorized to use this method

260ContactPersonEmail is invalid
363TelephoneNumber is invalid
364User already exists
365UserRole is invalid
366The given UserName does not exist
367FirstName/LastName length has exceeded the maximum character limit allowed (50) 
368UserName length has exceeded the maximum character limit allowed (50) 
369Email length has exceeded the maximum character limit allowed (50) 
370Specializations length has exceeded the maximum character limit allowed (250) 
371Given user does not exist in your company