Is it possible to create a new Repository Laserfiche user from SDK or API?
Question
Question
Replies
Hi Mary,
Great question and this is a feature we are discussing for the Laserfiche API. I don't have any timeline for this capability right now to provide you, but we will be rolling out new API routes in the near future.
Best,
Andrew
I don't see a way to do it via the API. The API is lacking most administration-level capabilities. Not certain about the SDK.
The way I automate mine is to use an Active Directory group that is part of my identity provider rules in Laserfiche Directory Server. That way, to assign licensing, I only have to add a user to the AD group. I also use dynamic AD groups for repository permissions, so the user will automatically receive permissions based upon job title, department, etc.
You can create a repository user with the SDK by instantiating a UserInfo object, setting the properties, and calling Save(). This only works for repository users (or groups) since in those cases the Laserfiche server manages the trustee itself. For LFDS or AD users, you have to create them there.
Hi Brian,
I tried to use SDK to create a new user but I can't set the named user property from the SDK
This is part of the code
UserInfo UI = new UserInfo();
UI.Session = session;
UI.Name = "UserName";
UI.Password = "password";
UI.NamedUserStatus = NamedUserStatus.ReadWrite;
UI.Save();
For modifying the named user database, see this Answers post: https://answers.laserfiche.com/questions/107997/How-to-mark-a-User-a-Repository-Named-User-using-sdk-script-in-workflow
I have this error when using this solution when accessing the server
"Failed to authenticate: InitializeSecurityContext failed"
can you help me with this error?
I replied to this answer but with no reply