Skip to main content
avillanueva
23-Emerald I
23-Emerald I
October 4, 2023
Solved

Changing username and Workspace Cache

  • October 4, 2023
  • 3 replies
  • 2385 views

So, my company is changing usernames...again. I looking to mirror those activities for PDMLink so that they not have to remember two ids. I know how to mass change the LDAP and DB to implement this change. My question is the workspace cache. I've seen cases if you login into Windchill and the local workspace cache was for a different Windchill users, it would complain. I am trying to avoid this AND not have users have to blow away their cache again. Is it possible to alter the username in the cache so it can continue working normally? Does anyone know where this is stored? 

Best answer by jlecoz

Altering the cache is at your own risk.  

 

The user ID is an information that is pushed to the CAD through attributes (for example PTC_MODIFIED_BY in Creo Param), such information is also published in the viewables.

So you can introduce data integrity issues on your legacy data.

 

 

 

 

 

 

3 replies

jlecoz15-MoonstoneAnswer
15-Moonstone
October 4, 2023

Altering the cache is at your own risk.  

 

The user ID is an information that is pushed to the CAD through attributes (for example PTC_MODIFIED_BY in Creo Param), such information is also published in the viewables.

So you can introduce data integrity issues on your legacy data.

 

 

 

 

 

 

avillanueva
23-Emerald I
23-Emerald I
October 4, 2023

Shot in the dark. Based on early investigations, username might not be stored in a single location. 

12-Amethyst
October 5, 2023

Hello @avillanueva , yes you are right, user name gets stored in multiple files at multiple locations. I am not sure if even if you find a way to change it from all locations, will it work or not.  In addition to that if your environment is SSO enabled then these changes need to be implemented on browser layer also. 
Instead, you can create batch files to create a backup of the existing cache and then delete the Creo cache for the first and last time after the changes are implemented. 

Thanks,
Hemant

16-Pearl
October 4, 2023

I would strongly suggest users to check-in everything and clear their cache before you go for user id changes. 

 

It is best practice to clear the cache regularly. 

 

If you want to keep the cache folder intact , you can try one thing. Good chance that it will work.

 

Cache location is set by this logic <Cache_Location>\<user_id>. After your user id change , you can rename the folder to <cache_location>\<new user id>

 

Please let us know if it works. 🙂 

avillanueva
23-Emerald I
23-Emerald I
October 4, 2023

We have a startup script that changes all that. I am not referring to the windows user id. I was asking about the Windchill user id. Say I log into windows with jsmith but my Windchill user id is john.smith123, the cache folder does not put that name in the path but jsmith and that part is not change. Now I would like Windchill to change to be jsmith and the local workspace not to complain. This would be similar to being logged into Windows as jsmith but logging into Windchill via Creo as jane.doe. The cache would complain after it logged in (I think). 

HelesicPetr
22-Sapphire II
22-Sapphire II
October 5, 2023

Hi @avillanueva 

If the information is stored in the cache then I tied to search.

It also depends on Creo version because sometimes information about registered server was stored in different place 

I've found that user id is in following files>

.cache2008\servedAddress\workspaceName\ws.cache

.cache2008\servedAddress\server.cache

.cache2008\servedAddress\workspaceName\frames\ws.cache.frame

 

and also I found an another place with chrome cache I guess

files f_000xxx example zbcef_profile\cache\f_00049c  it was placed in the creo cache folder in my case

this files are html pages that are stored locally but I don't know their purpose

 

all changes are on your own risk as you definitely know 😄 

 

PetrH