Announcements
No record found.
I can do it for the newly created user with the following code, but how can I do it for the imported user?
Your requirement seems not to be clear to me.
Please can elaborate what you are trying to achieve?
My point is that I'm creating a new user with the "new" button in the SysUserInfoPage form. In the code in the image I shared, I automatically create the language, location and time zone of the user created with the "new" button as the same as the admin user. My next goal is to click on the "import users" button in the same form, and I want to perform it for the users selected from Azure Active Directory Users.
i solved my problem with the following code:
[DataEventHandler(tableStr(UserInfo), DataEventType::Inserting)]
public static void UserInfo_onInserting(Common sender, DataEventArgs e)
{
UserInfo userInfo = sender as UserInfo;
UserInfo adminUser;
select firstonly PreferredLocale from adminUser where adminUser.id == #AdminUser;
userInfo.PreferredLocale = adminUser.PreferredLocale;
}
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 669
André Arnaud de Cal... 445 Super User 2026 Season 1
Syed Haris Shah 331 Super User 2026 Season 1