API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

ConnectAsAdministrator

0
I wish to use the ConnectAsAdministrator-method for establishing connection to the API.

I am a little confused with the parameters:

adminAgreementNo and clientAgreementNo. What is the difference between these? The only agreement no. I have is the one I normally use when signing in to our account throught the webpage.

Please specify

Kind Regards
Frederik
created Jan 19, 2012 by KiaerInnologic
0% Accept Rate
Q 12 A 16 C 1

5 Answers

0
Hi,

If your credentials are for a company user, you must use the API connection method Connect().

If they are for an administrator user, you must use ConnectAsAdministrator() - and consequently supply both the administrator agreement number and the agreement number of the company whose data you wish to access.


Best regards,
answered Jan 19, 2012 by Christian Estrup
0
I solved this - it's 3rd part accounting which is called Administrator.

When a user is accessing through the API how do I know if it is the agreement/company super user? Or just a regular employee?

/ Frederik
answered Jan 19, 2012 by KiaerInnologic
0
Hi,

You cannot know this purely from the API.

If you need to support both company and administrator logins, AND your integration workflow asks your users for the corresponding credentials - then you need to ask them for either 3 or 4 values anyway, in which case it'll make sense to have them make an initial, separate choice of whether to use a company or administrator login.

If you HAVE a set of credentials - agreement number (unknown type), user ID and password - and wish to check whether it's a company or administrator user, you can always figure it out by logging into the e-conomic application - since the subsequent user interface will reflect the user type


Best regards,
answered Jan 19, 2012 by Christian Estrup
0
Christian,

I wish only to let super users interact with our system. Is this possible? I use the regular company login but found that not only our super user (is it possible to have more then one?) but also our regular company users can get access to our company data through the API.

Is there a way in which I can let only the super users interact through the API and exclude regular company users?

/ Frederik
answered Jan 19, 2012 by KiaerInnologic
0
Hi Frederik,

Yup, we've recently added just that possibility:

In e-conomic, edit the master information of your non-superusers and remove the tick in Access via API.


Regards,
answered Jan 19, 2012 by Christian Estrup

Network

Find all the documentation and resources you need to build great apps.
Go to Developer site

Newsletter

Get the latest news and important info from the e-conomic developer world.
Sign up now

Visma e-conomic A/S
...