Update User

Modified on Wed, 11 Jun at 12:53 PM

Description: 

This API is use to update users


API Endpoint: 

/ws/userrolemanagement

 

Method: 

POST

 

Header: 

 

Field

Value

SOAPAction

/ws/datasetManagement.wsdl

 

Request:


XML Element

Type

Value

<wsse:Username>

String

Smarten username

<wsse:Password>

String

Smarten user password

<userInfo>

string

The UserInfo object holding all of the user’s details, which is use for update user information

<userTypeBI>

String

User type

<userActive>

String

Is user active

<password>

String

User password

<emailId>

String

mail id of the user

<username>

String

Name of the user

<personName>

String

Person name

<deptName>

String

Department name

<ssdpUser>

Boolean

Is or not ssdp user

<smartenInsightuser>

Integer

Is or not smarten insight user

<isMobileUser>

Boolean

Is or not mobile user


Request Example: 


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:user="http://www.elegantjbi.com/ws/userrolemanagement">

   <soapenv:Header>

      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

         <wsse:UsernameToken wsu:Id="UsernameToken-883B813619E1EFA1BF169079282782817">

            <wsse:Username>username</wsse:Username>

            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>

         </wsse:UsernameToken>

      </wsse:Security>

   </soapenv:Header>

   <soapenv:Body>

      <user:updateUserRequest>

         <!--1 or more repetitions:-->

         <userInfo>

            <userTypeBI>userType</userTypeBI>

            <userActive>userActive</userActive>

            <password>password</password>

            <emailId>mailId</emailId>

            <!--Zero or more repetitions:-->

            <username>username</username>

            <personName></personName>

            <deptName/>

            <ssdpUser>true</ssdpUser>

            <smartenInsightuser>0</smartenInsightuser>

            <isMobileUser>false</isMobileUser>

         </userInfo>

      </user:updateUserRequest>

   </soapenv:Body>

</soapenv:Envelope>

 

Response:  

 

Return a response with SOAP XML as object. 

 

XML Element 

Type

Value

<ns2:statusCode>

String

Return the API status response

 

Response Example: 

 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

    <SOAP-ENV:Header>

        <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1">

            <wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="XWSSGID-1749096016928-56917612">

                <wsse:Username>user</wsse:Username>

                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">K5891YBEsX+APki/TlPqXS0o8lM=</wsse:Password>

                <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">ZVaaPjgUTUiCww1VuENbneGM</wsse:Nonce>

                <wsu:Created>2025-06-05T15:09:26.426Z</wsu:Created>

            </wsse:UsernameToken>

        </wsse:Security>

    </SOAP-ENV:Header>

    <SOAP-ENV:Body>

        <ns3:updateUserResponse xmlns:ns3="http://www.elegantjbi.com/ws/userrolemanagement">

            <status>

                <statusCode>Success</statusCode>

            </status>

        </ns3:updateUserResponse>

    </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

Postman Example: 

 

You can import the example below into Postman. 

 

curl --location 'https://<SMARTENURL>/smarten/ws/RoleManagementService' \

--header 'Content-Type: text/xml' \

--data-raw '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:user="http://www.elegantjbi.com/ws/userrolemanagement">

   <soapenv:Header>

      <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">

         <wsse:UsernameToken wsu:Id="UsernameToken-883B813619E1EFA1BF169079282782817">

            <wsse:Username>priyanshu</wsse:Username>

            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>

         </wsse:UsernameToken>

      </wsse:Security>

   </soapenv:Header>

   <soapenv:Body>

      <user:updateUserRequest>

         <!--1 or more repetitions:-->

         <userInfo>

            <userTypeBI>2</userTypeBI>

            <userActive>true</userActive>

            <password>password</password>

            <emailId>mailId</emailId>

            <!--Zero or more repetitions:--> 

            <username>username</username>

            <personName></personName>

            <deptName/>

            <ssdpUser>true</ssdpUser>

            <smartenInsightuser>0</smartenInsightuser>

            <isMobileUser>false</isMobileUser>

         </userInfo>

      </user:updateUserRequest>

   </soapenv:Body>

</soapenv:Envelope>'


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article