Workflow Soluiton

 View Only
  • 1.  Adding Org Unit Permissions to a Process

    Posted Oct 30, 2016 08:43 PM

    I need to assign “Can View” permissions to a workflow process for an Organizational Unit.  The problem is that Org Unit will vary and I only know the OrganizationalUnitID (its guid).  It looks like the “Add Process Permissions” component is perfect for this but I can’t quite seem to get the ProcessPermissionHolder object it needs right.

    So far I have:

    1. A “Get Organization Unit By ID1” component to get the Org Unit object
    2. A Multiple Value Mapping component to map my OrgUnit details and SessionId into a ProcessPermissionHolder.Permission
      PermissionMap.PNG
    3. A “Add Process Permissions” component that applies the ProcessPermissionHolder object to my Process.

     

    This all seems to work as far as making the permission visible in the process but the actual permissions provided are all simply set to inherit.

    InheritedPermissions.PNG

    I realise I don’t define that I need “Can View” anywhere but I don’t know where/how to do this.

    Can anybody help?



  • 2.  RE: Adding Org Unit Permissions to a Process

    Posted Oct 31, 2016 05:58 AM

    You could use the Add Process Permissions

    shield_add.png

    Class: LogicBase.Components.Ensemble.Reporting.AddProcessPermissionsComponent
    Library: LogicBase.Components.Ensemble.dll
    Publisher: Symantec Corporation

    This gives you a nice Picker for the Permissions:

    Permissions Editor.png



  • 3.  RE: Adding Org Unit Permissions to a Process

    Posted Oct 31, 2016 04:38 PM

    Thanks Alex but thats the problem - I need to choose the Org Unit within the workflow as it will vary.  So I don't think I can get a picker to work.



  • 4.  RE: Adding Org Unit Permissions to a Process
    Best Answer

    Posted Nov 02, 2016 05:01 AM

    Ah sorry should have been more detailed.

    Use an Add Data Element to create a "Reference Type" object of "Group". This lets you pick from a dropdown of Reference Types.

    WF - Reference Type Group.png

    Add the permissions like the above post, set to "All Users", this will change next.

    The Tick the "Override Reference Type And ID With Variables"

    Map your ReferenceId which is the GroupId you have got from SQL or whatnot,

    Reference Type is the Group one you created earlier.

    Set your SessionId.

    WF - Add Process Permission - Group.png

    (This is done in "SD.IncidentManagementSimple" within the Model: "List Group Names In Queue")



  • 5.  RE: Adding Org Unit Permissions to a Process

    Posted Nov 02, 2016 05:28 PM

    Ah yes thats what I needed.

    In my case, I used my ReferenceType of Organization and set the Override Reference ID to be the OrganizationUnitID and it worked first time.

    Thanks!