You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(1) Create columns on table users
First column:canImpersonate (false by default)
Second column: allowsImpersonation (true by default)
(2) Create new endpoint /impersonate/{userId}
That endpoints check that the logged-in user has the required privilege to impersonate, then proceeds to re-login as the user, then redirects to the home page or shows an error if the user isn't found or the logged in user doesn't have the required privileges
(3) Todo later (not for this issue):
Give the user an easy way to revert to his admin account (For now the user can go to settings > logout and re-login)
Note: CRMs like Salesforce or Hubspot allow workspace admin to impersonate their team member. Probably a bit premature since we don't have a strong permissionning system yet but maybe something to have in mind as we design this
The text was updated successfully, but these errors were encountered:
(1) Create columns on table
users
First column:
canImpersonate
(false by default)Second column:
allowsImpersonation
(true by default)(2) Create new endpoint
/impersonate/{userId}
That endpoints check that the logged-in user has the required privilege to impersonate, then proceeds to re-login as the user, then redirects to the home page or shows an error if the user isn't found or the logged in user doesn't have the required privileges
(3) Todo later (not for this issue):
Give the user an easy way to revert to his admin account (For now the user can go to settings > logout and re-login)
Note: CRMs like Salesforce or Hubspot allow workspace admin to impersonate their team member. Probably a bit premature since we don't have a strong permissionning system yet but maybe something to have in mind as we design this
The text was updated successfully, but these errors were encountered: