Developer forum

Forum » Dynamicweb 10 » Impersonation signing in as current user instead of customer

Impersonation signing in as current user instead of customer

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi,

Not sure if this is a dw10 or Swift thing. I'm running Swift 1.26 on 15.3, no custom stuff.

I have setup Impesonation, and when I login as DemoUser, I can see that I can Impersontate the user "B2B Customer" in "My Customers"

When I click "Manage Customer" I get a notification that I am now logged in as "Demo User", but that is the user I am already logged in as.

Any ideas?


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Justin,

Sorry for the late reply. Was this issue resolved?

We previously had some issues with unexpected results in the "My customers" list which was caused by user macros in index queries.

If this is still a problem then try this...

  1. Upgrade to latest DW10
  2. Repositories: Change the Secondary users > Users > Users query to use "ImpersonatorUserAncestorGroups" instead of "UserGroups" macro in the last "CanBeImpersonatedBy" expression (see screen dump below).
  3. Repositories: Rebuild the Secondary users > Users index.

Now you should see the expected results in the "My customers" list in Swift frontend.

/Morten

Image

 

You must be logged in to post in the forum