Manage Workflows in GrantsConnect API
A user's access to workflow levels can be managed in the GrantsConnect API. This includes the users that have permission to view or approve grants.
Add a user to a workflow to view and/or approve grants
-
Call
POST api/client/v1/grantmanagerusers/userbyemailto find the individual’suserId. -
Call
POST api/client/v1/workflowsto retrieve a list of workflows.-
Find the ID of the workflow (i.e.,
workflowId) to use. -
Alternative: If the name of the workflow is known, a file
{“Name”: “YourWorkflowNameHere”}can be added to the body to retrieve the specific workflow object.
-
-
If the alternative suggestion was note used, then call
GET api/client/v1/workflows/{workflowId}to pull back the workflow object. -
Call
POST api/client/v1/updateUserWorkflowsto update the workflow. Be sure to update theJSONobject to add the user at the correct sublevel.Warning: The format of the workflow
JSONmust be accurate to avoid system errors.
Update or remove a user from a workflow
The instructions provided above can be used to find the userId, workflow object, and JSON. In this scenario, update the JSON to remove or change the user’s workflow level access before posting.