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