﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Role Based Security  » Access to user password programmatically</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 01:25:24 GMT</lastBuildDate><ttl>20</ttl><item><title>Access to user password programmatically</title><link>http://forum.strataframe.net/FindPost7713.aspx</link><description>As you might remember (or not... :)  )  I have this whole "project" based app going. I just realized that when I allow the user to change projects, I need to login them in again in order to refresh there permission (that was a fun 3 hrs figuring out what was wrong).  I'd prefer to just do this programmatically, logging the same user back on, which means I'd need their user name and password to pass to SetLoggedInUser.  How do I retrieve this info?  I know the password is encrypted in a field in the user table, but how do I get it?</description><pubDate>Tue, 27 Mar 2007 12:32:43 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Access to user password programmatically</title><link>http://forum.strataframe.net/FindPost7743.aspx</link><description>Cool! Thanks!</description><pubDate>Tue, 27 Mar 2007 12:32:43 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Access to user password programmatically</title><link>http://forum.strataframe.net/FindPost7730.aspx</link><description>You can use the SFSUsersBO to retrieve the value.&amp;nbsp; The SecurityBasics.CurrentUser.UserPK will give you the primary key for the user and you can create a new SFSUsersBO and FillByPrimaryKey() to get the user record.&amp;nbsp; The password is then accessible through the PasswordPlainText property.&amp;nbsp; Of course, once you have the customer record in the SFSUsersBO, you could then just call LoggedInUser.SetLoggedOnUser() and just pass it the SFSUsersBO with the record... this will cause the permissions to be retrieved and the CurrentUser object (and therefore the permissions) to be refreshed; so you really don't need the password once you have the record.</description><pubDate>Tue, 27 Mar 2007 08:50:00 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>