Skip to Content
Author's profile photo Joel Harris

Adding “Change your password” functionality to the SAP Business One Cloud User Portal

So you have your SAP Business One Cloud landscape set up and running smoothly, you’re creating tenants quite happily and users are merrily going about their business. Then one day one of your users emails to ask, “How do I change my SAP Business One Cloud password?”


By default the SAP Business One Cloud portal doesn’t have a change password option, thankfully though because it is based on the MS Remote Desktop Web application we can fix this fairly easily.


The following example assumes Windows Server 2008 R2 is being used, and is provided as-is and without any warranty of any kind. You should ensure you have a working backup of your configuration before attempting the below.


Step 1:


The reason the SAP Business One Cloud portal doesn’t have a change password option by default is because neither does MS Remote Desktop Web, so the first thing we need to do is fix that. KB Article 2648402 contains the patch that we need to apply (can be found under the link “Hotfix Download Available” near the top of the page.


On the server that is running MS Remote Desktop Web and your SAP Business One Cloud User portal download the file, apply it and reboot the server. Once the server has restarted you need to enable the password change option in IIS, using Application Settings:




Step 2:


Now that we have a default page that will allow a user to change their password from the portal (you can check in %Windows%\Web\RDWeb\Pages\en-US for the newly created password.aspx file) we can link it into our SAP Business One Cloud User Portal. We will need to make a change to main.html, this is can be found in the SAP Business One Cloud Portal directory:

main html folder location.png


Open main.html and make the following changes to the file:


main html code.png


Here we are calling the newly added password page from the main window using a new button. This button is located with the welcome message for a user so will only be displayed to users that have been successfully logged on. Where you see the address you need to replace this with the address of your own RDWeb directory. The result will be:




Now when you click the Change My Password link it will open the following page:




Step 3:


Now we have a working solution although the page that is opened doesn’t fit with the look and feel of the SAP Business One Cloud User Portal. We can make some changes to make it look a little better. I’m sure that some of you will be able to take this one step further and make it look like a seamless part of the portal! Feel free to share with the community if you do!



I’ve attached the customised password.aspx page to this post so I won’t go through all of the changes that I made to get the look and feel. The more important change is that we have got the application to pre-populate the User Name to include the full domain name in a read only field. RDWeb requires this full user name and don’t forget that our users do not normally enter it for SAP Business One Cloud so it has the potential to confuse if not implemented this way.


The first snippet creates a variable that stores the current domain and user name:


The second changes the value of the string so that if the variable set above was DOMAIN\MYUSER it will now be DOMAIN\\MYUSER. The second ‘\’ is required as when we access this in JavaScript the ‘\’ is treated as an escape character on it’s own:


This script gets the variable we have stored and manipulated on the server and adds it to the textbox that is collecting the Domain/User Name combination, in this case it is called ‘DomainUserName’


To ensure the script above works we call it when the page loads, add it to the body tag as below:



And that’s it, just a few simple steps to add functionality to change passwords through the SAP Business One Cloud User Portal.


Over the coming weeks and months I will be posting more content around SAP Business One Cloud, if you have anything that you would like me to cover please let me know!


About me:


I’ve been working at SAP with SAP Business One for the last 9 years in a variety of roles. Currently I look after SAP Business One Cloud and spend much of my time working with partners to help them take advantage of the new and exciting opportunities that have emerged since it’s release. You can follow me on Twitter @joelaharris to make sure you hear the latest news!

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Once you are logged into SAP from a PC you can change the password.  Hit Ctrl + Alt + End key which will bring up a window shown below.  From there select Change a Password. 

      Change PW.JPG

      For Mac users who might be using Jump Desktop to access the OnDemand environment, they would us Ctrl + Fn + Alt + Delete keys.  They will see the same window as shown above to change their password. 

      Author's profile photo Joel Harris
      Joel Harris
      Blog Post Author

      Thanks Johnson, that's a good option too which partners can educate their users to use if they don't want to provide the functionality through the portal.