Checking Query Security via SQL
Posted on December 14, 2009 by Todd Kummer
Query security always seems to be an issue: "I can't see the query!"
Here are a couple of SQL statements to review the setup. The last one tells you why a user can't see a query.
-- List of records available to query
SELECT * FROM PSQRYACCLSTRECS
WHERE CLASSID = 'ROSO_PERMISSION_LIST_NAME'
ORDER BY RECNAME;
-- List of Query Tree Access Groups
SELECT * FROM PS_SCRTY_ACC_GRP
WHERE CLASSID = 'ROSO_PERMISSION_LIST_NAME';
-- Records without security
SELECT * FROM PSQRYRECORD
WHERE QRYNAME = 'ROSO_QUERY_NAME'
AND RECNAME NOT IN (
SELECT DISTINCT RECNAME FROM PSQRYACCLSTRECS
WHERE CLASSID = 'ROSO_PERMISSION_LIST_NAME');
Post a Comment:
Comments are closed for this entry.
Recent Posts
Monday Dec 12, 2011
Eliminate Extra Blank Rows in XMLP Reports
Saturday Feb 26, 2011
Built-in Function BulkInsertField
Thursday Jun 24, 2010
Spicing Up Your Vanilla With a Custom Look & Feel
Wednesday Feb 03, 2010
Local Sub-Templates for XML Publisher
Monday Dec 14, 2009
Generate Excel Spreadsheet from PeopleCode
Checking Query Security via SQL
Monday Nov 02, 2009
Rowset Manual Sort
Monday Oct 26, 2009
Meta-SQL %InsertSelectWithLongs
Tuesday Sep 29, 2009
Set Processing vs Complexity
PeopleTools 8.50 PeopleBooks
Tuesday Sep 08, 2009
Screen Capture Software: Greenshot
Wednesday Sep 02, 2009
Using Maps in PeopleCode
Sunday Aug 23, 2009
Accessing the Run Control from App Engine PeopleCode
Thursday Aug 20, 2009
Rowset Fill Method and the JOIN Keyword
Monday Aug 10, 2009
Select All / Clear All via JavaScript
Monday Aug 03, 2009
Pre-process XML Publisher Reports with XSLT
Friday Sep 12, 2008
Status Monitor Pop Up
Sunday Sep 07, 2008
Approval Workflow Engine (AWE)
Thursday Aug 07, 2008