Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Extend User Object With out adding additional columns to user object View modes: 
User avatar
Member
Member
bsatish417-gmail - 6/30/2011 12:11:06 PM
   
Extend User Object With out adding additional columns to user object
Hi ,

we have a requirement where a user can login & clicks on a image to show poup

popup contains a tree of user names , he can select a user to emulate (or) impersonate like that user , so that he can have the new roles etc set to selected user

how ever we want to retain the logged in user id & new user id on which he clicked

can we extend the user object dynamically for that session, instead of adding additional column to user table .

we dont want to add any additional column to table , but want to store the selected userid in the cmscontext user object

i have seen that we can store them in cookies ,so that they can be used in Macros to get the values when required

but would like to store some where in the session (or) cms context object & access them through Macros when required

thanks
satish

User avatar
Member
Member
bsatish417-gmail - 6/30/2011 5:26:20 PM
   
RE:Extend User Object With out adding additional columns to user object
the things i have to know are :

1) can we access session object in macros ( i dont think so )
2) can i set the additional params as key value to cmscontext user object ?

thanks
satish

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 7/1/2011 11:35:07 AM
   
RE:Extend User Object With out adding additional columns to user object
Hello,

I assume all the questions are implementation questions only. I just want to make sure, that you know that the impersonalisation is already available in the 5.5 R2 version. You can impersonalisate any user by going to Administration / Users / Edit / Log in as this user. Please note that this feature is available only to a global administrator.

Best regards,
Boris Pocatko

User avatar
Member
Member
bsatish417-gmail - 7/1/2011 11:39:35 AM
   
RE:Extend User Object With out adding additional columns to user object
Hi ,

Thank you , I want this in the portal & based on different user Roles
Different Users will see different User Tree based on his Roles
So we may not be able to use the existing one as it is .

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 7/4/2011 1:30:27 AM
   
RE:Extend User Object With out adding additional columns to user object
Hello,

1) You can create custom macros for accessing the mentioned data in cookies or in the session.
2) For custom data you can use the UserCustomData in teh CMS_UserSettings table.

Best regards,
Boris Pocatko