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

Question

Question

Webapi for Synchronize users in Forms

asked on January 3, 2018

Hi, is there a WebApi available for synchronize users in Forms?

 

The reason we need to call the WebApi externally is because we have modify the PrimaryEmailAddress value in Web.config and RoutingEngineServiceHost.exe.config to using "sAMAccountName", as it is a strict requirement from the client to authenticate using Windows username instead of email address, so we need to update the email address in the cf_users and cf_user_snapshot table after synchronizing users.

 

Thanks

0 0

Replies

replied on January 3, 2018

If you would like to use web request, you can send a POST request to http://FormsServer/Forms/BusinessProcess/SyncUsers with content {"type":2,"check":true}

Alternatively, you can use the UserSyncClient.exe in C:\Program Files\Laserfiche\Laserfiche Forms\Forms\bin for performing synchronization.

0 0
replied on March 13, 2018

Thanks for your suggestion.

I have managed to POST the request and it returns a success status code, however the resulting response text returns what looks like the page source code for the Forms login page and no users synchronization has actually happened.

I suspect this has to do with authentication, is there a way we can pass the authentication detail during the POST request as well?

0 0
replied on March 14, 2018

It depends on the tool you used to send the request. Basically you just need to send the login request first and make sure the tool could use the cookie to send further requests.

0 0
replied on March 16, 2018 Show version history

I am using the following webapi to post the authentication request: http://<servername>/Forms/webapi/v1/Authentication/LogIn

However I keep getting the following response and I am not sure why:

{
    "errors": [
        {
            "status": 500,
            "code": "InternalError",
            "message": "Laserfiche Forms encountered an internal error. Please try again. [LFF500-InternalError]"
        }
    ]
}

I am on Forms version 10.2.1.246, basically I followed this post to send the login request: https://answers.laserfiche.com/questions/102116/Laserfiche-Forms-WSFed-or-SAML#102218

Any ideas? Thanks

0 0
replied on March 18, 2018

Did you use LFDS authentication or repository authentication? This API is for repository authentication only.

If you are using repository authentication, can you check the event viewer on Forms server and see what the detailed exception is for this 500 internal error?

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

Sign in to reply to this post.