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

Question

Question

LFDS SDK Question: how to set user account's first, last name & email via code

asked on February 2, 2024 Show version history

I was able to create user, assign group, set password policy but these property seemed not part of "LaserficheUser". In stead they're some type of extra property, say "claim"?  I have no clue how to program it from the SDK function.

Can Laserfiche help me on that  (C# code preferred)? Thanks.

0 0

Replies

replied on February 2, 2024 Show version history

Update: end up with this chunk of code.

var claim = new TrusteeClaims();
claim.SetClaim("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress", new string[] { "aaa@gmai.com" });
claim.SetClaim("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname", new string[] { "lastname" });
claim.SetClaim("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname", new string[] { "firstname" });

lfUser.SetClaims(claim);

TIP: I find the "key" from DB table, and hopefully that's the right place of getting these.

 

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

Sign in to reply to this post.