UFN_BUSINESSPROCESSINSTANCE_SYSTEMROLEPERMISSIONSLIST
Returns a table of IDs for all system roles that have permissions set for the given BUSINESSPROCESSINSTANCEID
Return
Return Type |
---|
table |
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@BUSINESSPROCESSINSTANCEID | uniqueidentifier | IN |
Definition
Copy
CREATE FUNCTION dbo.UFN_BUSINESSPROCESSINSTANCE_SYSTEMROLEPERMISSIONSLIST(@BUSINESSPROCESSINSTANCEID uniqueidentifier)
/*
Returns a table of IDs for all of the system roles that have permissions set for the given BUSINESSPROCESSINSTANCEID
*/
returns table
as
return
(
select
SRP.ID, SR.NAME, SRP.SYSTEMROLEID, SRP.GRANTORDENY
from
dbo.SYSTEMROLE as SR left outer join dbo.SYSTEMROLEPERM_BUSINESSPROCESSINSTANCE as SRP on SR.ID = SRP.SYSTEMROLEID
where
SRP.BUSINESSPROCESSINSTANCEID = @BUSINESSPROCESSINSTANCEID
)