User Impersonation

Discussions related to custom development with Select.
Post Reply
dutil
Posts: 33
Joined: Thu Dec 19, 2019 12:10 pm

User Impersonation

Post by dutil »

Hello,

Is there a way to impersonate a user within the API?
We have a service running with an admin account that updates certain orders on behalf of a few users.
We would like to have the user who triggered the change show up as the active user when calling code in the OrderSaving/Saved events on our server package.

Is this possible?
BobRichards
Posts: 1376
Joined: Wed Jan 15, 2014 3:50 pm
Location: Raleigh, NC
Contact:

Re: User Impersonation

Post by BobRichards »

Server packages run as the administrator. There is no way to change this.

The only way for a server package to impersonate a user is to create another SelectServer instance by logging in with the user credentials. This means the server must know the username/password for the user and it would consume a license for the duration of the session. This is not advised.
Bob Richards, Senior Software Developer, SoftPro
Post Reply