I need to develop an account mapping script that be able change loginuser.username. Is there any funtion that allow change letter case to capital?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I need to develop an account mapping script that be able change loginuser.username. Is there any funtion that allow change letter case to capital?

L1 Bithead
3 REPLIES 3

L1 Bithead

For example:

LoginUser.Username = LoginUser.Get('sAMAccountName').ToUpper();

trace("changedName:" + LoginUser.Username);

 

You can find more information from the doc

https://docs.cyberark.com/Product-Doc/OnlineHelp/Idaptive/Latest/en/Content/Applications/AppsScriptR...

L1 Bithead

Function .ToUpper() doesnt work. I also i have tried with .ToUpperCase() but it didnt work. In CyberArk documentation say that it support Javascript function but it seem is not correct

ToUpper() function is available for LoginUser.Get()/LoginUser.First/LoginUser.LastName but not just LoginUser.Username

 

Here is an example:

LoginUser.Username = LoginUser.LastName.ToUpper();

Field_Content_versions_oct20__0682J00000F94EvQAJ.png

  • 319 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!