V_SECURITY_SYSTEMROLEASSIGNMENT_USER_REPORT_BYROLE

Fields

Field Field Type Null Description
REPORTCATALOGID uniqueidentifier
APPUSERID uniqueidentifier
GRANTORDENY bit
PERMID uniqueidentifier
SYSTEMROLEID uniqueidentifier
RECORDSECURITYMODE tinyint
SITESECURITYMODE tinyint

Indexes

Index Name Fields Unique Primary Clustered
IX_V_SECURITY_SYSTEMROLEASSIGNMENT_USER_REPORT_BYROLE_REPORTCATALOGID_APPUSERID REPORTCATALOGID, APPUSERID
IX_V_SECURITY_SYSTEMROLEASSIGNMENT_USER_REPORT_BYROLE APPUSERID, PERMID yes yes

Definition

Copy

create view [dbo].[V_SECURITY_SYSTEMROLEASSIGNMENT_USER_REPORT_BYROLE] with SCHEMABINDING
/*
Indexed view used to evaluate Security for reports
Includes a row for every system role/user/report parameter permission that has been assigned.
*/
AS
    select
        SYSTEMROLEPERM_REPORT.REPORTCATALOGID,
        SYSTEMROLEAPPUSER.APPUSERID ,
        SYSTEMROLEPERM_REPORT.GRANTORDENY,
        SYSTEMROLEPERM_REPORT.ID as PERMID,
        SYSTEMROLEPERM_REPORT.SYSTEMROLEID,
        SYSTEMROLEAPPUSER.CONSTITUENTSECURITYMODECODE as RECORDSECURITYMODE,
        SYSTEMROLEAPPUSER.SECURITYMODECODE as SITESECURITYMODE
    from 
        dbo.SYSTEMROLEPERM_REPORT
        inner join dbo.SYSTEMROLE on SYSTEMROLEPERM_REPORT.SYSTEMROLEID=SYSTEMROLE.ID
        inner join dbo.SYSTEMROLEAPPUSER on SYSTEMROLEPERM_REPORT.SYSTEMROLEID=SYSTEMROLEAPPUSER.SYSTEMROLEID