Friday, 4 May 2007

Query Tree Security SQL

Query Trees are assigned to a permission list in PeopleSoft under the Query tab of: -

PeopleTools > Security > Permissions and Roles > Permission Lists

Working out who's got access to what query trees can be a bit of a nightmare manually searching through each permission list in turn. To that end, the following piece of SQL is quite useful in establishing which roles have access to a particular query tree or trees.

select distinct ROL.ROLENAME,
ROL.CLASSID,
SAG.TREE_NAME
from PSROLECLASS ROL,
PS_SCRTY_ACC_GRP SAG
where ROL.CLASSID = SAG.CLASSID
and SAG.TREE_NAME in (Query Tree List)

To see which query trees a particular user has access to, use: -

select distinct USR.ROLENAME,
ROL.CLASSID,
SAG.TREE_NAME
from PSROLEUSER_VW USR,
PSROLECLASS ROL,
PS_SCRTY_ACC_GRP SAG
where USR.OPRID = 'Operator ID'
and USR.ROLENAME = ROL.ROLENAME
and ROL.CLASSID = SAG.CLASSID

To see which users have access to a particular query tree: -

select distinct ROL.ROLENAME,
OPR.OPRDEFNDESC
from PSROLECLASS ROL,
PS_SCRTY_ACC_GRP SAG,
PSROLEUSER_VW USR,
PSOPRDEFN OPR
where ROL.CLASSID = SAG.CLASSID
and SAG.TREE_NAME = 'QRY_TMUK_ALL'
and ROL.ROLENAME = USR.ROLENAME
and USR.OPRID = OPR.OPRID
order by ROLENAME, OPR.OPRDEFNDESC

33 comments:

Anonymous said...

xanax online xanax dosage intervals - greenstone xanax 2mg

Anonymous said...

buy tramadol online tramadol online cod - tramadol 37.5/325 dosage

Anonymous said...

xanax online xanax xr 0.5 mg tablet - xanax pills 029

Anonymous said...

buy tramadol online where can you buy tramadol online - tramadol buy no prescription usa

Anonymous said...

xanax medication xanax like drugs - xanax and alcohol lethal dose

Anonymous said...

buy tramadol online tramadol vs hydrocodone high - buy-tramadol-online

Anonymous said...

xanax without prescription does xanax show up drug test - xanax dosage vs ativan dosage

Anonymous said...

buy tramadol online no prescription order tramadol online safely - can you buy tramadol over the counter in usa

Anonymous said...

buy tramadol online buy tramadol from usa - tramadolor 100 mg

Anonymous said...

carisoprodol 350 mg effects of carisoprodol 350 mg - carisoprodol 350 mg dose

Anonymous said...

buy tramadol online buy tramadol online in usa - 001webs com buy tramadol online

Anonymous said...

xanax online illegal order xanax online - xanax dosage daily

Anonymous said...

best place to buy xanax online xanax pills usage - drug interactions xanax cymbalta

Anonymous said...

buy carisoprodol no prescription order carisoprodol no prescription - carisoprodol tab 350mg

Anonymous said...

buy tramadol online tramadol 50 mg pills - safe order tramadol online

Anonymous said...

buy cialis online cheap cialis - buy cheap cialis no prescription

Anonymous said...

buy xanax online xanax side effects constipation - xanax effects memory

Anonymous said...

buy cialis with paypal cialis no longer works - cialis cost

Anonymous said...

buy xanax no prescription xanax dosage webmd - xanax narcotic

Anonymous said...

cialis online generic cialis us - cialis coupon free

Anonymous said...

cheap tramadol online tramadol for dogs arthritis - tramadol hcl 50 mg tablets

Anonymous said...

20000 :) Cheap Gabapentin - purchase gabapentin online http://www.neurontinonlinecheap.net/#Neurontin-300mg, [url=http://www.neurontinonlinecheap.net/#Cheap-Gabapentin]Neurontin Online[/url]

Anonymous said...

buy tramadol tramadol 50mg t7 - tramadol dosage adults

Anonymous said...

buy tramadol online buy tramadol online with echeck - buy tramadol online worldwide

Anonymous said...

buy generic tramadol tramadol withdrawal nhs - tramadol for dogs dosage by weight

Anonymous said...

http://ranchodelastortugas.com/#72895 xanax nursing implications - xanax no prescription overnight delivery

Anonymous said...

xanax drug xanax order no prescription - 2mg klonopin 1mg xanax

Anonymous said...

online xanax no prescription xanax 8mg day - 1mg clonazepam equal xanax

Anonymous said...

[url=http://my.moverapid.com/antidandruffhairoil][img]http://my.moverapid.com/promo.gif[/img][/url]





[size=4][url=http://my.moverapid.com/antidandruffhairoil][b][color=blue]Buy [/color][color=red]Anti-Dandruff Hair Oil[/color][color=blue] ONLINE - click here![/color][/b][/url][/size]

Anonymous said...

Best Medicine (Royal Pharmaceutical) Supplier Phone-+1 (415) 480-4502
https://www.royal-pharmaceutical.com/product/xanax-bars-2mg-xanax-bars-alprazolam/

Quality Research Chemicals was founded in October of 2016 and was created with the sole mission and dedication “To provide the highest quality research chemical and pill products on the market with the best customer service in the industry”.
Our products are 100% genuine and our prices are some of the best in the vape world. If your looking for the newest and best research chemicals on the internet then you have found it right here.

Get in touch->
Phone number-+1 (415) 480-4502

Anonymous said...


Best Medicine (Lapsta pharmacy) supplier phone-+1 (424) 209-8290

https://lapstapharmacy.com/
Best medicines with approximately 5-15% lower market price than other distributors.
In keeping fully abreast of developments and innovations in the market, all of your-med.com projects are supported by the most advanced systems available. We are skilled and experienced professionals in this field and have set ourselves the target of becoming one of the world’s leading and most reputable online providers of pharmaceuticals.


• DEPRESSANTS AND ANXIETY
• ANABOLIC STEROIDS
• HALLUCINOGENS
• STIMULANTS
• OPIOIDS
• Oxycodone
• Uncategorized
• Xanax

• Get In Touch
• Phone : +1 (424) 209-8290
• Email : info@lapstapharmacy.com
• Website :https://lapstapharmacy.com

Anonymous said...

Best Medicine Supplier (Recreational marijuana shops) Supplier Phone-+1(720) 515-4677
https://recreationalmarijuanashops.com/
We are strong believers that every patient who requires medical marijuana should have easy access to it. We want to do everything in our power to make sure that these patients get the very best access to the very best medical marijuana that We have to offer.
Recreational Marijuana Shop is committed to ensuring that your privacy and security is protected at all times
PRODUCTS TO OFFER-
Grizzly genetics
Top grinder
Acapula gold
Afghan kush
Afghani Hawaiian
Alaskan thunder

Get in touch
Phone-+1(720) 515-4677
Email- info@recreationalmarijuanashops.com

Anonymous said...

Best Medicine (Lapsta pharmacy) supplier phone-+1 (424) 209-8290
https://lapstapharmacy.com/product/alprazolam/
Best medicines with approximately 5-15% lower market price than other distributors.
In keeping fully abreast of developments and innovations in the market, all of your-med.com projects are supported by the most advanced systems available. We are skilled and experienced professionals in this field and have set ourselves the target of becoming one of the world’s leading and most reputable online providers of pharmaceuticals.


• DEPRESSANTS AND ANXIETY
• ANABOLIC STEROIDS
• HALLUCINOGENS
• STIMULANTS
• OPIOIDS
• Oxycodone
• Uncategorized
• Xanax

• Get In Touch
• Phone : +1 (424) 209-8290
• Email : info@lapstapharmacy.com
• Website :https://lapstapharmacy.com