Thursday, 24 May 2007

Roles, Permission Lists & Components

The following SQL identifies which roles/permission lists a user has to access a given component.

select RUSR.OPRID,
RUSR.ROLENAME,
RCL.CLASSID,
MNU.MENUNAME,
CMP.PNLGRPNAME
from PSROLEUSER_VW RUSR,
PSROLECLASS RCL,
PS_PSACLMENU_VW2 MNU,
PS_ACLCOMPONENT_V2 CMP
where RUSR.ROLENAME = RCL.ROLENAME
and RUSR.OPRID = 'oprid'
and RCL.CLASSID = MNU.CLASSID
and MNU.MENUNAME = CMP.MENUNAME
and CMP.PNLGRPNAME = 'component'
order by MNU.CLASSID

SQL to find out which roles have a particular permission list.

select distinct RCL.ROLENAME,
RCL.CLASSID
from PSROLEUSER_VW RUSR,
PSROLECLASS RCL
where RCL.CLASSID = 'TYALLPLS'
order by RCL.ROLENAME

SQL to list users assigned to a particualr role.

select *
from PSROLEUSER_VW RUSR
where RUSR.ROLENAME = 'Rolename'

21 comments:

Anonymous said...

buy xanax 1mg xanax withdrawal side effects - xanax mg

Anonymous said...

generic xanax lexapro xanax and alcohol - xanax overdose withdrawal

Anonymous said...

generic xanax 2mg xanax get you high - xanax side effects tremors

Anonymous said...

buy tramadol online buy tramadol 200mg - can you buy tramadol in usa

Anonymous said...

tramadol online no prescription can buy tramadol usa - cheap tramadol online no prescription

Anonymous said...

xanax online xanax no prescription uk - xanax 2mg pies

Anonymous said...

generic xanax xanax 57 - buy xanax online no prescription cheap

Anonymous said...

buy tramadol online tramadol overdose quantity - buy tramadol overnight cod

Anonymous said...

carisoprodol 350 mg carisoprodol prodrug - soma or carisoprodol

Anonymous said...

buy tramadol online buy tramadol online usa cheap - ultram tramadol hci

Anonymous said...

buy cialis online buy viagra cialis online usa - cialis how long to take effect

Anonymous said...

alprazolam no prescription xanax withdrawal rage - symptoms of xanax overdose in dogs

Anonymous said...

xanax online xanax street price australia - xanax drug fact sheet

Anonymous said...

xanax online xanax overdose alcohol - xanax drug test detection period

Anonymous said...

buy tramadol buy tramadol online usa - buy 180 tramadol online

Anonymous said...

buy tramadol countries can you buy tramadol over counter - tramadol trade name generic name

Anonymous said...

buy tramadol tramadol hcl 50 mg po tab - tramadol hcl 100mg side effects

Anonymous said...

http://buytramadolonlinecool.com/#30694 buy tramadol online usa - tramadol dosage 25mg

Anonymous said...

ways to buy ativan online withdrawal effects of ativan - ativan overdose signs

Anonymous said...

order xanax no prescription xanax on a drug test how long - green xanax pills s 902

Anonymous said...

buy tramadol medication buy tramadolno prescription overnight - buy tramadol cheap