Skip to main content
12-Amethyst
Jan 30, 2024 8:10 AM UTC
Question

Default settings for new user

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?

6 replies

5-Regular Member
Jan 31, 2024 4:45 PM UTC

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

Translate
ZbigniewK12-AmethystAuthor
12-Amethyst
Feb 1, 2024 7:09 AM UTC

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. 

Translate
5-Regular Member
Feb 1, 2024 10:28 AM UTC

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

Translate
17-Peridot
Feb 1, 2024 12:53 PM UTC

@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

Translate
17-Peridot
Feb 2, 2024 11:39 AM UTC

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.

Translate