V_SECURITY_SYSTEMROLEASSIGNMENT_USER_TASK_BYROLE
Fields
| Field | Field Type | Null | Description |
|---|---|---|---|
| TASKID | uniqueidentifier | ||
| APPUSERID | uniqueidentifier | ||
| PERMID | uniqueidentifier | ||
| SYSTEMROLEID | uniqueidentifier | ||
| RECORDSECURITYMODE | tinyint | ||
| SITESECURITYMODE | tinyint |
Indexes
| Index Name | Fields | Unique | Primary | Clustered |
|---|---|---|---|---|
| IX_V_SECURITY_SYSTEMROLEASSIGNMENT_USER_TASK_BYROLE_TASKID_APPUSERID | TASKID, APPUSERID | |||
| IX_V_SECURITY_SYSTEMROLEASSIGNMENT_USER_TASK_BYROLE | APPUSERID, PERMID | yes | yes |
Definition
Copy
create view [dbo].[V_SECURITY_SYSTEMROLEASSIGNMENT_USER_TASK_BYROLE] with SCHEMABINDING
/*
Indexed view used to evaluate Security for tasks
Includes a row for every system role/user/task permission that has been assigned.
*/
AS
select
SYSTEMROLETASK.TASKID,
SYSTEMROLEAPPUSER.APPUSERID ,
SYSTEMROLETASK.ID as PERMID,
SYSTEMROLETASK.SYSTEMROLEID,
SYSTEMROLEAPPUSER.CONSTITUENTSECURITYMODECODE as RECORDSECURITYMODE,
SYSTEMROLEAPPUSER.SECURITYMODECODE as SITESECURITYMODE
from
dbo.SYSTEMROLETASK
inner join dbo.SYSTEMROLE on SYSTEMROLETASK.SYSTEMROLEID = SYSTEMROLE.ID
inner join dbo.SYSTEMROLEAPPUSER on SYSTEMROLETASK.SYSTEMROLEID = SYSTEMROLEAPPUSER.SYSTEMROLEID