Security Views and finding a permission


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Do the two views built by the security package (from DDT) define all permissions for a user? I.e. if I query the SFSUserPermissionInfo for a us_pk = 1 and pm_key = 'myPerm' and I query the SFSUserRolePermissionInfo view for us_pk = 1 and pm_key = 'myPerm', I would know for certain if the user has the 'myPerm' permission right?
Replies
Steve L. Taylor
Steve L. Taylor
StrataFrame Developer (102 reputation)
Group: StrataFrame Developers
Posts: 40, Visits: 91
Yes, the SFSUserRolePermissionInfo view does only return the roles granted to a user but it is not the only thing used to determine a user's permissions at runtime. The other view, SFSUserPermissionInfo contains the permissions assigend directly to a user.  These two views would be far to complex to combine in a SQL code so they are run separately and combinded programmatically in the LoggedInUser class.

The flat list of PermissionInfo objects is not compiled until runtime.  You can go view the source code for the LoggedInUser class to see how it is done.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
This is what I figured out BigGrin Use the two views from within code to figure out the final, flat permission list. I was about to figure this out myself, but now I'm making a b-line for LoggedInUser BigGrin
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Steve,



I can't find the LoggedInUser class in any of the source that I have (unless I'm missing something). Object viewer says that this class in the security DLL. Is the source for that DLL included with the SF source?



If not, could you just verify that I'm using the correct rules to figure out the final permssions (posted a few posts up).
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
There are 4 solutions that are part of the StrataFrame Source Code download:

1) MicroFour StrataFrame.sln
2) MicroFour StrataFrame Security.sln (it's in this one...)
3) MicroFour StrataFrame Infragistics Wrapper.sln
4) MicroFour StrataFrame Inherited UI.sln (DevExpress wrapper)

So, when you want to get to other DLLs besides just Base, Business, DBEngine or UI, you have to open one of the other source code solutions.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Doh... I did miss something! Blush



This is going to make life easier!



Thanks!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Greg McGuffey - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Greg McGuffey - 18 Years Ago
Trent L. Taylor - 18 Years Ago
                     OK, I'll check the documentation. I must have missed it.
Greg McGuffey - 18 Years Ago
Larry Caylor - 18 Years Ago
Greg McGuffey - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Steve L. Taylor - 18 Years Ago
Greg McGuffey - 18 Years Ago
                         Yes, the SFSUserRolePermissionInfo view does only return the roles...
Steve L. Taylor - 18 Years Ago
                             This is what I figured out :D Use the two views from within code to...
Greg McGuffey - 18 Years Ago
                                 Steve,

I can't find the LoggedInUser class in any of the...
Greg McGuffey - 18 Years Ago
                                     There are 4 solutions that are part of the StrataFrame Source Code...
StrataFrame Team - 18 Years Ago
                                         Doh... I did miss something! :blush:

This is going to make...
Greg McGuffey - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search