Forum Discussion

Oscar's avatar
Oscar
Contributor
2 months ago

Securty Roles Query

What is the best way to query the Security Roles and their assigned Security Groups in the Application. It would also be helpful to query security roles assigned to Workflows. Any ideas?? 😕 Thanks. ...
  • MarcusH's avatar
    2 months ago

    Security Groups on the Application Roles can be queried with BRApi.Security.Admin.GetApplicationRoles. I have retrieved the security groups against the Workflows by joining the SecGroup table with the WorkflowProfileHierarchy table.

  • ckattookaran's avatar
    2 months ago

    I know you are looking for groups. However, there is a method query to get the workflowprofilerights.