# User Guide

1. [Step By Step Process](#id-1.-step-by-step-process)
2. [Demo Video](#id-2.-demo-video)

## 1. Step By Step Process

1. Click ‘Discontinue’ button for the policy in policies list

![image3.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-de62c5956945e3a0e5da2978313d394fa60a00e3%2F0.png?alt=media)

2. Policy can be marked ‘discontinued’ immediately (chose ‘Immediate’ option) or automatically at a later date (‘Deferred’ option)

![image1.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-930257b67a174d3179306aa26a01f4282796366a%2F1.png?alt=media)

3. In the UI policies, which were set to discontinue immediately are displayed with the red color in the status block and policies which are set to deferred discontinue are displayed with the gold warning color in the status block.

![image10.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-708511f2778f78991625164e4889f2da286154e8%2F2.png?alt=media)

4. Discontinue actions in the UI triggers the issuance of the \[deferred-]discontinue-policy messages in the corresponding policy topic

![image12.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-14852d76e608e8b0fb7249d50d392caf240e854c%2F3.png?alt=media)

5. Discontinued policy is displayed with a red bar in the UI. For these policies the creation of new documents for users/sensors is not disabled. Policies which are set to discontinue later (‘deferred’) are displayed with a yellow warning bar

![image4.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-0c45f3808150d123c7e407ae93a52c4fefb3c84c%2F4.png?alt=media)

![image11.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-57b5f4011f5fb03527d144d2308db16582b98fe1%2F5.png?alt=media)

6. When a policy has been discontinued users can migrate data to another (currently active) policy

![image6.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-5b43a820b30fee1435c96b72a849f00bc22aa86a%2F6.png?alt=media)

### Migration steps order:

1. Policies: Select the source and the destination policy.
2. VP Documents : Select VPs which are to be migrated from the source policy.
3. VC Documents : Select VCs which are to be migrated from the source policy.
4. Schemas : Map the source policy schemas with the destination policy schemas.
5. Roles : Map source policy roles with the destination policy roles.
6. Groups : Map the source policy groups with the destination policy groups.
7. Tokens: Map the token templates
8. Blocks : Block mapping (while state migrating is enabled)
9. Clicking OK you will start an asynchronous migration task

<figure><img src="https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-f09b0e8899001c53e4ec2ab2e233133c0ef6c6a7%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

![image9.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-e2d263ad3413e1d61ede71d4d75a9d83ce49a5a7%2F7.png?alt=media)

3. When the task completes, a success or warning (in case of issues) notification is displayed.

![image8.png](https://501642358-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbKnJV8vV7zUxRwKIsJKg%2Fuploads%2Fgit-blob-a7066f8b0f5e6be641913e5ff9f91e4c4e034b23%2F8.png?alt=media)

## 2. Demo Video

[Youtube](https://www.youtube.com/watch?v=vvHI4AG-8z8\&list=PLnld0e1pwLhqdR0F9dusqILDww6uZywwR\&index=13)
