Is it possible to check out the doc by a different user?

We are working on a DMS integration App for SuperOffice online. The app is authenticated with OAuth 2, so we are working in the SuperOffice user's context.
After sending the document to the DMS, we have to check it out. The problem is that we need to check it out by a "dummy-interface" user.

The document agent provides a method to check out the document in the current user context.

Is it possible to check out the doc by a different user? 

An alternative to checking out the document would be to mark it as read only. Is this possible?

Thanks
Georg

RE: Is it possible to check out the doc by a different user?

Hi Georg!

There is no "Impersonation" support in our web service proxies and API. However, in a couple articles I have stated that with OAuth 2.0, you can use a previously authenticated users stored refresh_token to obtain an access_token and perform actions on that users behalf. In that case, you are able to simulate impersonation.

Hope this helps!

Av: Tony Yates 29. nov 2019

RE: Is it possible to check out the doc by a different user?

Hi Tony! Thanks for your info!

Is it possible to check out a document if we authenticate in SuperOffice online as a System user (in a background process without user interaction)?

If yes: what would be the name that appear as "checked out by" in the document dialog. 

 

We tryed this scenario on an onsite installation, using system user crm7. It worked but the "checked out by" in the document dialog was empty. I tihink this is normal because a system user (in our case crm7) does not have a "real" person behind.

 

Thanks
Georg

 

Av: Georg Diczig 29. nov 2019

RE: Is it possible to check out the doc by a different user?

HI Georg,

Yes, and the name shown would be the name of the system user. 

That said, using the users refresh token, your can also obtain a new access token for that person and perform the same task non-interactively. Understand?

Best regards!

Av: Tony Yates 29. nov 2019

RE: Is it possible to check out the doc by a different user?

Hi Tony,

checking out the document as a system user works fine. Thank you for your hint!
Unfortunately the checkout by name displayed in SO GUI comes from person name. For that we defined a wish:
https://community.superoffice.com/en/Issue-Center/Product-Issue/?bid=68926

BR
Georg

Av: Georg Diczig 16. des 2019