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

Question

Question

SDK to Remove Laserfiche Retrieval User created

asked on June 27, 2017

Hi All, 

 

Was just after some assistance regarding the below. I currently have a Workflow that runs an SDK script and creates a Retrieval Only User for Weblink. As these users are only given access to the files for a certain period of time, I have set a delay then a remove of the files within the Repository which works perfectly. The user created is being assigned rules to this folder and there are Tokens set for this user to be able to be called upon. 

 

I would like to know how to remove that created user after the folder has also been removed from the repository? Can I achieve this automatically using SDK Script? If so, can someone please share this? 

 

Thank you in advance,

Ziad

1 0

Answer

SELECTED ANSWER
replied on July 5, 2017

If it is a repository user, it should be something like this:

        Try
            Dim AccountToDelete As AccountInfo = Account.GetInfo(sUserName, CurSession)
            AccountToDelete.Delete()
            AccountToDelete.Save()
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try

 

3 0
replied on July 6, 2017

Thank you Bert, 

 

Appreciate this, will give it a go over the next few days. 

 

Regards

Ziad

0 0
replied on July 10, 2017

Hi Bert, 

 

We used the above and modified it by using C# instead but does the same thing. 

Thanks again with this, 

 

Regards

Ziad

0 0

Replies

replied on July 4, 2017

Hi All,

 

Are there any updates on this?

 

Thanks

Ziad

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

Sign in to reply to this post.