Forum Discussion
TheJonG
4 months agoContributor III
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.
- ChrisR1ch3 months agoNew Contributor III
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.
- KarlT3 months agoContributor III
This function should help
BRApi.Workflow.Metadata.GetRelatives(si, cubeRootCluster, WorkflowProfileRelativeTypes.Descendants, WorkflowProfileTypes.BaseAndParentInputProfiles)
Related Content
- 2 years ago
- 10 months ago
- 10 months ago