.. sectnum::
   :depth: 2
   :start: 1

Onboarding roles in Registry
===========================================================

Onboarding credential services for all entities
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Investor2 requests credential service from DA the Operator.

=================   =================   
Actor               Utility Module
=================   =================   
Investor2           CREDENTIAL
=================   =================   

Select ONBOARDING on the left navigation. In the Services box, click REQUEST CREDENTIAL USER SERVICE. 
(The User is different for each entity.)

.. image:: pictures/request_credential_user_service_1.png

A request is shown in the Requests box. The request is automatically accepted in the DevNet.

.. image:: pictures/request_credential_user_service_2.png


Now the credential service is created in the Services box.

.. image:: pictures/request_credential_user_service_3.png

Provider offers Holder credential for Investor2
---------------------------------------------------------------------------

Provider offers a free credential to Investor2 (as Holder).

=================   =================
Actor               Utility Module
=================   =================
Provider            CREDENTIAL
=================   =================

Select CREDENTIALS on the left navigation. Click OFFER FREE CREDENTIAL. A window pops up for input.

- Holder: Investor2's Party ID
- Id: investor2-holder
- Description: <anything>
- Claims

  * Subject: Investor2's Party ID
  * Property: hasRegistryRole
  * Value: Holder

.. image:: pictures/credentials_holders-3.png

Click OFFER.

Three credential offers are created. (Check OFFERS on the left navigation).

.. image:: pictures/credentials_holders-4.png

Investor2 accepts credential offer
---------------------------------------------------------------------------

Investor2 accepts the credential offer as a Holder.

=================   =================
Actor               Utility Module
=================   =================
Investor2            CREDENTIAL
=================   =================

Select OFFERS on the left navigation. There is a credential offer from Provider.

.. image:: pictures/credentials_holders_accept-5.png

Click ACCEPT.

Now a credential is created (Check CREDENTIALS on the left navigation).

.. image:: pictures/credentials_holders_accept-6.png

Investor2 requests onboarding as a Holder in the Registry
---------------------------------------------------------------------------

Investor2 requests onboarding the Registry as a Holder.

=================   =================
Actor               Utility Module
=================   =================
Investor2           REGISTRY
=================   =================

Select ONBOARDING on the left navigation. In the Services box, click REQUEST HOLDER SERVICE

.. image:: pictures/onboard_holder-7.png

A window pops up for input.

- Provider: Provider's Party ID

.. image:: pictures/onboard_holder-8.png

Click REQUEST.

A request is shown in the Requests box.

.. image:: pictures/onboard_holder-9.png

Provider accepts onboarding requests from Investor2
---------------------------------------------------------------------------

Provider accepts the requests.

=================   =================
Actor               Utility Module
=================   =================
Provider            REGISTRY
=================   =================

Select ONBOARDING on the left navigation. In the Services box, Provider sees the three requests.

.. image:: pictures/provider_accept_onboarding-1.png

Click ACCEPT for all requests

Now Issuer, Investor1 and Investor2 are onboarded as a Holder by the Provider.

.. image:: pictures/provider_accept_onboarding-2.png

All entities are onboarded
---------------------------------------------------------------------------

Check all entities are onboarded by Provider

.. list-table::

  * - Actor
    - Utility Module
  * - Investor1, Investor2
    - REGISTRY

Select ONBOARDING on the left navigation. 

Investor1 as Holder

.. image:: pictures/provider_accept_onboarding-5.png

Investor2 as Holder

.. image:: pictures/provider_accept_onboarding-6.png

Congratulations! The overall onboarding process in the Registry is complete. Now it is time for token specific activities.