StrataFrame Forum

how to check permissions for user other than the current user

http://forum.strataframe.net/Topic23729.aspx

By Keith Chisarik - 7/1/2009

I need to check permissions for a given key for a user for which I will only have either the username or primekey value.It will not be the currently logged in user. How please?
By Trent L. Taylor - 7/1/2009

You will just need to create a LoggedInUser instance and after taht you can do everything that you want to do. The below logic will bypass authentication:



'-- Establish Locals

Dim user As New MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO()

Dim rbsUser As MicroFour.StrataFrame.Security.LoggedInUser



'-- Populate the BO with the user

user.FillByUserName("MyUserName")



'-- Create the logged in user reference

rbsUser = MicroFour.StrataFrame.Security.LoggedInUser.CreateNew(user)



'-- You can now test on permissions etc. off of the rbsUser