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

Privacy overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognizing you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.


To see a full list of the cookies we use and learn more about their purposes, visit our Privacy Policy.