You are viewing limited content. For full access, please sign in.

Question

Question

License manager library

asked on February 4, 2021

Dear,

 

I am trying to build an application that create LFDS users inside laserfiche directory server through coding and i am using license manager object dll.

 

I was able to create this user.

 

My question is that when i am trying to put the parameter for this user, i have only the name of this user that i want to create and also i have the password. But i am not able to find how i want to assign the first name,last name and display name of this user through my code.

 

If you have any idea to share it with me

0 0

Replies

replied on February 8, 2021

Hi Toni,

I don't think this is supported at this time in LicenseManagerObjects.dll. It is a reasonable expectation however and I have filed work item 304544 to our backlog for the team to add this functionality.

replied on February 8, 2021

Hi Toni,

As an example, you can set the user's display name like so:

Database db = s.GetDatabaseByRealmName("TestDB");

User user = db.GetUser(userSid);

TrusteeClaims claims = user.GetClaims();

claims.SetClaim(LFClaimTypes.DisplayName, new string[] { "ThisIsMyDisplayName" });

user.SetClaims(claims);

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.