Secure Data Sharing

This guide shows how to share the encrypted data between users or with external services.

Share encrypted data

To share specific data between multiple users, use the share function. This function allows you to encrypt and share the certain data with other users or external services:

pure.share(userGrant1, dataId, userId2);

PureGrant is a token generated for the data owner during the authentication process.

Unshare encrypted data

Use this flow to remove access to the previously shared encrypted data.

In case if data owner needs to remove access to the data for any user or 3rd party service, PureKit provides them with unshare function:

pure.unshare(userId1, dataId, userId2);

Next step

Create roles and instantly give users with a specific role access to data: