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

Question

Question

How to mark a User a "Repository Named User" using sdk script in workflow?

asked on September 30, 2016

When running the following script below I receive this error: 

The security identifier is not valid for Laserfiche. (9048)

  • Services are running under a domain account
  • Domain account added as System Manager
  • Registry Key "CheckAdminNUDB" added

 

0 0

Replies

replied on September 30, 2016

This works for me:

LaserficheNamedUserDatabase nudb = LaserficheNamedUserDatabase.GetFromServerInstance(new Server(server));

LaserficheNamedUser lfnu = nudb.GetLaserficheNamedUser(userName, repository.ToLower());
if (lfnu == null || lfnu.Status != NamedUserStatus.ReadWrite)
    nudb.RegisterLaserficheNamedUser(userName, repository.ToLower(), NamedUserStatus.ReadWrite);

 

0 0
replied on April 27, 2023

Hi Robert,

 

I have this error when using your solution when accessing the server in the first line

"Failed to authenticate: InitializeSecurityContext failed"

 

Have you solved this error before?

0 0
replied on September 30, 2016

Many thanks Robert, that did the trick.

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

Sign in to reply to this post.