Forum Discussion
I do not believe there is a way to only return the profiles a user has access to. You would need to loop through the Profiles and bring in the AccessGroup and MaintenanceGroup IDs then check if the user is in that group using BRApi.Security.Authorization.IsUserInGroup(si, groupID). Before the loop create a new List (Of WorkflowProfileInfo) object and add the Workflow Profile Infos to it if the conditions are met.
I'm having a problem getting a list of all workflow profiles, to be able to loop through and pull Access Group and Maintenance Group. Can you give me or direct me to a snippet of code that will return that list.
Related Content
- 2 years ago
- 11 months ago
- 11 months ago