Data agents in subject rights requests for data beyond Microsoft 365 (preview)
Data agents help automate the fulfillment of export and delete tasks. Subject rights requests for data beyond Microsoft 365 integrates with Microsoft Power Automate through a Priva connector. To learn more about Power Automate, visit the Power Automate documentation.
Data agent lifecycle
A user in your organization can create a data agent to help automate task functions. For example, a privacy data engineer in your organization might want to automate the fulfillment of creation of export packages or deleting the records as required in the subject rights request. To create a data agent, the privacy data engineer follows these basic steps:
Create a data agent and assign assets to it
Create a Power Automate flow using the Priva Subject Rights Requests Power Automate connector.
Link the data agent using Power Automate flow ID and publish the data agent.
Create a data agent
Follow these steps to create a data agent:
On the Data agents page, select New data agent to open the data agent builder.
On the New data agent flyout pane, you can leave the Power Automate flow ID blank for now.
Enter a Name and Description.
Select the Subject rights type of Export or Delete.
Enter a user's name as the Owner of the data agent.
At Classifiers, select one or more classifiers that are in scope for the request, then select Apply.
At Variable name in Power Automate flow, enter a variable name for each classifier you selected, which is how the the classifier will appear in your flow. Keep a note of the names, which should be in sync with the variable name in your Power Automate flow.
Select Create.
The data agent you created is now listed on the Data agents page in Draft status. Select the name of the data agent to view its details page.
If you need to make any changes, select Edit on the data agent details page, make your updates, and select Update. Or select Cancel to exit without saving changes.
Create a Power Automate flow
Depending on the request type of export or delete, you can create a Power Automate flow using the Priva Power Automate connector. With the Priva connector, you can:
Get subject rights request details.
Report request task status.
Upload export data.
With the above capabilities, you can create automated cloud flows for various data sources to automate task fulfillment.
Get the Priva Power Automate connector
- Go to the Power Automate home page.
- Select Connectors from the left navigation.
- Search for Priva in the Search connector box, then select the Priva connector.
Once the Power Automate flow is turned on, copy the Power Automate flow ID.
Link data agent using Power Automate flow ID and publish
Now that you've copied the Power Automate flow ID, link the data agent by following these steps:
On the Data agents page, select the name of the data agent.
On the data agent's details page, select Edit.
Enter the Power Automate flow ID in the Power Automate flow ID field.
Select Update.
On the data agent's details page, select Publish in the upper right corner of the page.
Once the data agent is published, all tasks created for the classifiers that are in scope for the data agent will be picked and processed by the data agent.
Example flow creation
Here's an example of creating a Power Automate flow to extract data using a classifier within Contoso HealthCare Data System:
Sign in to Power Automate.
Create a new automated cloud flows and select the Priva connector as the trigger.
Sign in to the organization's Microsoft Priva account.
Initialize two variables: patient_ID.
Add a scope named Execute SRR task and add an action to get subject rights request details from the Priva connector.
Add a filter array action to filter the data subject identifier by the patient_ID variable.
Add a set variable action to assign the patient_ID variable to the first item of the filter array output.
Add a fetch row action and select
<target>
and<target>
column with value equal to<classifier_variable>
.Add an action CSV file to write the data from the previous step in the CSV file.
Add an action Priva upload export data, to upload the data to the task.
Based on the requirements, you can add scope and extra error handling.