How to Configure Active Directory Security on Workflows
In the XAML workflows we have security set up to allow access to special tools if you're in an Active Directory group.
With Workflow 5 I can't see a way to configure this type of security.
Is there a way to configure security on toolbar workflows which is the same or similar to the way we could do it with the XAML?
-
If I understand the question correctly, you are looking for a way to configure workflow 5 access through essentials. I don't think that you can do this, but have a very simple workaround.
Create an Essentials Workflow with a RunExternalCommand activity in it to run "RunWorkflowByUrlAndInputs". Add an input string argument to the workflow and pass it as the parameter to the command activity with jsonConvert.DeserializeObject turning the string into an object. Throw the workflow into your site and you're done! You can keep adding the same workflow for each security group and then set the permsisions.
0 -
Thanks for the answer DDS! That's a great idea.
Unfortunately we were given a directive to move off .xaml completely.
Our Solution --> We wrote a custom module to do this. It uses active directory roles and configuration to disable/hide buttons/regions on the toolbar. It works really well!!
0 -
Gday @Matthew Ryan? , mate we are needing this exact functionality, but are wobbling around a bit in getting a handle on where to start... would you be willing to briefly share your tools/approach to this solution to help give with a starting point for developing a similar solution? Thanks.
0 -
@David Bye? , Probably better to share the code code which we've developed. It's attached with no guarantees so use at your own risk (always need a disclaimer right ;) ). It's well commented and works for us. It requires Active Directory Authentication to work. Module configuration looks something like this:
{
"moduleName": "Security",
"libraryId": "myLibId",
"require": "geocortex/company/Security/Security",
"configuration": {
"roles": [
{
"name": "editor_role",
"workflows": [
"import-12d-file.json",
"delete_records.json",
"search-historical.json"
]
},
{
"name": "approver_role",
"workflows": [
"review-project-item.json"
]
}
],
"securedworkflows": [
"import-12d-file.json",
"delete-records.json",
"search-historical.json",
"review-project-item.json"
]
}
}
Hope that helps!!
0 -
@Matthew Ryan? That's fantastic help mate. Thanks very much, you're a legend!
0
Please sign in to leave a comment.
Comments
5 comments