Skip to main content
7-Bedrock
March 20, 2024
Question

Update alternate usernames for multiple users

  • March 20, 2024
  • 1 reply
  • 767 views

I am using Windchill PDMLink Release 11.0 and Datecode with CPS M030-CPS14

We're attempting to update Alternate usernames in our dev environment by using an infoengine task detailed in CS233456. It appears that case is not updating bulk users but a specific user. I was looking for a way to update multiple users. I created an infoengine group of WTUsers (small subset of all users) and tried using the foreach tag to parse through those users to update their alt username but that hasn't worked. I may be missing something and was wondering if there's anyone that could help with.

1 reply

4-Participant
March 27, 2024

Hi,

Try this code to update the Users details

1) Get the WTUSER Details from Windchill

2) wtuser.setXXX -- Set the Required Details

3. Use the below Method to Save the User Details
wtuser= (WTUser) OrganizationServicesHelper.manager.updatePrincipal(wtuser)

 

Regards,

Saravanakumar