Skip to main content
12-Amethyst
January 30, 2024
Question

Default settings for new user

  • January 30, 2024
  • 3 replies
  • 1564 views

When new person is logging onto TWX serwer via Active Directory, new User entity is automatically created.

Is that possible to set default settings for such user? Mostly I'm interested in language property of such user, so every new user will have "pl, pl - pl, eng, Default" language schema for server, where most of the users are polish?

3 replies

5-Regular Member
January 31, 2024

Hello @ZbigniewK ,

I believe whenever you create a new user, you can opt for the preferred  language by changing the language property.

bchaudhary_0-1706719511646.png

I hope this will resolve your problem.

Thanks

Bhawna

ZbigniewK12-AmethystAuthor
12-Amethyst
February 1, 2024

Yes, I know this way, but it not what I ask for.
I would like to write application, where Default language is english language, but can be switched for polish.
For existing user, I can make a script which will automatically fill the field you mentioned to string which I want, like "pl, en, Default". But every new user will have this field empty and it would need my administration to switch this field to polish.
Yes, I can use existing Preference widget, so people could do it by themselves. but it is not very natural, especially it has description in english and I can not switch it. I make simple application, for simple folks, and I do not want to make people trainings, where 90% of complexity of user experience is switching to polish. That's why I want to have this field filled automatically when new user is created. 

5-Regular Member
February 1, 2024

Hello @ZbigniewK 

Now i have understood your query. For that you can follow the linked article to change the language at Runtime:

 

https://www.ptc.com/en/support/article/CS248583

 

Kindly go through the article and revert back if you find it useful.

 

Thanks

Bhawna

17-Peridot
February 1, 2024

@ZbigniewK ,

I'm not 100% sure if this works for language, but on your Authenticator, under Configuration, you should see this table:

nmilleson_0-1706791895784.png

There you can map your IP attributes to user extension properties.  I would try that with the "language" property on your ThingWorx User.  If that's not an attribute in your IP, perhaps you can just use a dummy attribute name and default the value to pl-pl

 

- Nick

16-Pearl
February 2, 2024

That is a nice question. I am not aware that you could change the "platform" default language to a different one.

 

For your useCase you can user this article to make it work - After user creation, how to automatically set default user language to English . Only issue will be, that it will override the language for each user when he logs in (so also for existing users). So if someone would like to keep "english" as his language, it will also set him to the language you selected. You may need to add some more logic to prevent such cases.