Workflow Access Controls
In this, you will get to know how you can control access of the users to the workflows.
In Cobalt, you can manage which users can access a workflow created by you. One of the primary tools for implementing access control is through User-Defined Function (UDF) parameters. UDF parameters empower users to filter configurations for Linked Accounts, thereby granting access to specific workflows only to authorized users or entities.
Learn in detail about the UDF Parameter in our guide here.
Creating UDF Parameters
In the Config Portal of a Workflow, users can set up Access conditions to control who can interact with the workflow.
Please ensure that UDF Parameters on which the access will be controlled, have been created and set for the Linked Accounts.
You can add UDF Parameters to the Linked Accounts either programmatically or by the UI of Cobalt. Using either the Upsert Linked Account API or .upsertLinkedAccount() method of the NodeJS SDK, you can add UDF parameter.
Learn how to create UDF Parameter through the dashboard here.
Param | Required | Type | Description |
---|---|---|---|
linked_account_id | Mandatory | String | Unique customer identifier |
name | Optional | String | Name of the customer |
UDF | Optional | Object | User specific preliminary data |
your_app | Optional | Object | Auth specific data |
The request upserts a Linked Account with the UDF Parameters as requested and gives the following Response
Configuring Access Controls
To configure the Access Controls, go to the Workflow in Cobalt for which you want to do so.
- Click on the
Config Portal
button in the top right of the workflow.
- Here you have the option to define Access conditions such as
Match all conditions
orMatch any condition
. Users can then specify the name of the UDF parameter and its corresponding value that should be allowed to access the Workflow.
This workflow will now be visible only to the Linked Accounts which satsify the Access Control conditions.