Home > Forum > General > Iterate permissions for all applications

Iterate permissions for all applications
0

We have to now comply with SOX and part of the requirements is to list all WebCon apps and permissions/priveleges for each level and the groups/people in them.

Is there an easy way to dump all permissions/priveleges for all apps to a text file, pdf or other? If not I'll have to go through and take screenshots of each in designer!

MVP

Hi Bo,

you can use the below script as a starting point.


I ignored all privileges which are directly assigned on the workflow instance level and I didn't resolve group memberships.
It also ignores the privileges on application level, but than these are not relevant for accessing workflows.

Best regards,
Daniel

SELECT
[SEC_DEFID]
, DEF_Name
--,[SEC_ASSID]
--, ASS_Name
,ASS_WFID
,(select WF_Name from WorkFlows where WF_ID = ASS_WFID) as Workflow
, ASS_DTYPEID
,(select DTYPE_Name from WFDocTypes where ASS_DTYPEID = DTYPE_ID) as DocType
, COM_Name
, securityLevel.Name
,[SEC_LevelID]
,[SEC_COMID]
,[SEC_IsDomainGroup]
,[SEC_IsDeleted]
--,[SEC_Reason]
--,[SEC_IsPermanent]
,[SEC_IsGlobal]
,[SEC_USERGUID]
,[SEC_Department]
,[SEC_UserLoginName]
,[SEC_UserName]
,[SEC_ReasonAddMsg]
FROM [dbo].[WFSecurities] join DicSecurityLevels securityLevel on SEC_LevelID = securityLevel.[TypeID]
left join WFDefinitions on SEC_DEFID = DEF_ID
left join DocTypeAssocciations on SEC_ASSID = ASS_ID
left join Companies on SEC_COMID = COM_ID
where SEC_WFDID is null
order by SEC_DEFID, ASS_WFID, ASS_DTYPEID,SEC_COMID, SEC_LevelID

Did you know that with WEBCON you can automate virtually any process? Even baking cookies 🍪
 
Speaking of cookies: we use the ones that are essential for our website to function properly, as well as additional ones that help us customize our content to your preferences. If you don’t mind cookies, click Accept. If you want to learn more, explore settings.
Settings