asked on February 1, 2024
•
Show version history
Hello, I am using LFDS SDK/API to create Directory Server user via code (workflow/standalone).
I was able to create user/assign initial password/assign group without issue. However I am wondering what is the proper way of letting the new user to change their password upon first login? This can be achieved via DS web GUI and tick "User must change password at next sign-in".
My code when create the user like this (in C#)
LaserficheUser lfUser = LaserficheUser.Create(lmoDB); lfUser.Name = username; lfUser.Password = password; lfUser.ContainerID = lmoDB.GetRootContainer().ID; // Set their organization to Root if (true) { lfUser.PasswordUsesLeft = 0; lfUser.IgnorePasswordExpiration = true; } Guid participantLicense = new Guid("{22b871ca-e458-162d-43a5-a55153c40339}"); lfUser.Licenses = new Guid[] { participantLicense }; lfUser.Register();
Can anyone point me out what property/member variable should I set? Thanks.
0
0