how to check permissions for user other than the current user


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (1.5K reputation)StrataFrame VIP (1.5K reputation)StrataFrame VIP (1.5K reputation)StrataFrame VIP (1.5K reputation)StrataFrame VIP (1.5K reputation)StrataFrame VIP (1.5K reputation)StrataFrame VIP (1.5K reputation)StrataFrame VIP (1.5K reputation)StrataFrame VIP (1.5K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
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?

Keith Chisarik
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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




GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search