---
description: >-
  This is a walk-through covering the main functionality of the system released
  to date. It assumes you already have a wallet in either a
  WalletConnect-compatible mobile application or MetaMask browser
---

# Using Switchboard

-> The [test version](https://switchboard-dev.energyweb.org/) of the system leverages the Energy Web Volta test network. Therefore, all chain transaction fees use Volta tokens, which have no value and are freely obtainable [from the Volta faucet](https://energyweb.atlassian.net/wiki/spaces/EWF/pages/704479351). Here you can try and become familiar with what the system can do for you.&#x20;

-> The [production version](https://switchboard.energyweb.org/) of the system is on the Energy Web Chain and uses Energy Web Tokens for transactions. You can view the cost of transactions for each operation using this [link](using-switchboard/switchboard-transaction-cost-estimates).

{% hint style="info" %}
We recommend using Switchboard on Chromium (Google Chrome, Brave, etc.) or FireFox browsers.
{% endhint %}

{% hint style="info" %}
Please note that some privacy-related browser extensions could cause problems with the system. Therefore, if you find that you are unable to complete a step described below, please try disabling your privacy extensions and reloading the page.
{% endhint %}

## Visiting the Welcome Page

Using a web browser on your computer, visit the system landing page. It should appear similar to the image below.

->[Test Version](https://switchboard-dev.energyweb.org/)

-> [Production Version](https://switchboard.energyweb.org/)

![Welcome Page](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FgZrM8cWWisxhhgsn9ifm%2F2a64e62a-9397-4440-9d0b-066764314b6b.png?alt=media\&token=900e93b7-c169-48c2-b612-8fa2b33d711c)

### \[Optional] Installing Switchboard as a Progressive Web Application

The system is a progressive web app, meaning that if you access the system website via a browser on your mobile device, you can add the system as an app on your device’s home screen (without using the iOS App Store or Google Play Store).

To do this, first, open your browser and navigate to the system landing page.

Using Chrome on an Android device, click the three-dot overflow menu in the upper-right corner to reveal a menu similar to that shown at the right. Click on “install app” to initiate the download. You should then see the system logo as an app on your home screen.

On an iOS device, the process is similar. Navigate to the welcome page in Safari, then tap the “share” button and scroll down to “add to the home screen.” the system will now appear on your home screen.

## Connecting Wallet

As noted above, you may connect to the system using either a WalletConnect-compatible mobile wallet app (on your mobile device) or a MetaMask browser extension. Each of these methods is described below. You can complete either one and skip the other option.

### WalletConnect Mobile Wallet

This step requires that you have two devices: a primary device (e.g., a computer) with a browser displaying the system landing page, and a mobile device (tablet or smartphone) on which you have installed a WalletConnect-compatible application.

First, on your primary device, click “use mobile wallet” to view a QR code similar to that in the image at the right. Next, on your mobile device, open the mobile application you use as a wallet, and use that mobile app to scan the QR code on your primary device’s screen.

The app on your mobile device will ask you to confirm that you wish to connect to the system. Your mobile app might then ask you to sign one or more messages. Finally, your mobile app might ask to confirm the connection. After signing and confirming as instructed in your mobile app, your primary device should automatically bring you to the Switchboard dashboard screen.

### MetaMask Browser Extension <a href="#b.-metamask-browser-extension" id="b.-metamask-browser-extension"></a>

This step requires that you already have installed the MetaMask browser extension and created a wallet in MetaMask. See the page on [using the MetaMask browser extension](https://energyweb.atlassian.net/wiki/spaces/MYEN/pages/1710587949/Using+the+MetaMask+browser+extension) for more details.

When you click the “use MetaMask” button, the MetaMask browser extension should open automatically. After you sign in to MetaMask, click the “connect” button. You will be requested to sign a message; do this to complete the connection to the system. You should land on the Switchboard dashboard screen.

## Switchboard Dashboard

The Switchboard dashboard contains functionality related to _**assets**_ (creating managing an asset DID), _**governance**_ (managing organizations, applications, and roles), and _**enrolments**_ (issuing, viewing and revoking roles).

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2Fj3pmsDZZDWXfw6pwB71R%2FCleanShot%202022-10-06%20at%2012.06.06%402x.png?alt=media&#x26;token=3bf98bb7-7bfe-4f88-897f-2130e41b9229" alt=""><figcaption><p>Switchboard Dashboard</p></figcaption></figure>

### Managing the User Profile <a href="#iii.-updating-your-profile" id="iii.-updating-your-profile"></a>

If you click "Manage Profile" button on the top right corner of the dashboard, you can access the user profile menu.

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FBzND4tN38O2iMf7hs7cO%2FCleanShot%202022-10-06%20at%2012.09.44%402x.png?alt=media&#x26;token=b7263e66-7f6c-48bd-8c6a-fef4872d0222" alt=""><figcaption><p>User Profile Menu</p></figcaption></figure>

#### Update Identity

You can add a human-readible name label to your DID account using this menu item. The name is only stored locally and viewable by you.

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FzemE2aVTSLXJeFqrTJmr%2FCleanShot%202022-10-06%20at%2012.25.38%402x.png?alt=media&#x26;token=5f30b525-26fc-4d85-9218-de9ff19b1854" alt=""><figcaption><p>Update Identity pop-up</p></figcaption></figure>

#### DID Book

DIDs are not very human-readible and hard to memorize, therefore you can use the DID Book function to store the most used DIDs with labels to access them quickly.&#x20;

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2F37CtSg0XbxOiHXWqd4MB%2FCleanShot%202022-10-06%20at%2012.28.02%402x.png?alt=media&#x26;token=ec94b468-498e-4593-b665-35d339a69c9d" alt=""><figcaption><p>DID Book pop-up</p></figcaption></figure>

#### QR Code Scanner

You can use this function to scan DID encoded QR Codes.&#x20;

#### DID Document (⚠ Experimental)

You can use this function to see the DID document in raw JSON format and copy it.&#x20;

#### Logout

You can use this function to logout from the current DID account.

## Assets

An asset is a virtual representer of the user’s solar panels, smart energy meters, batteries and other devices in the system. Each asset is assigned its own DID that gives them the ability to be a part of the Energy Web Network, so they can be transferred or enrolled in a role.

By clicking on the “Register Asset” button on _my assets_ tab, you add one more asset to your list. It will get its own DID automatically.

![Register Asset pop-up](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FET6RzmBdQeJFiN5scTmQ%2Fa8c9d4fd-c554-430d-9eab-86708da1dbe0.png?alt=media\&token=5b991e0e-6b10-4652-a784-fc2f6d2f7936)

You should see a general list of assets similar in appearance to the image below.

![My Assets tab](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2F5pbsCGHrDBoGXV3HR0pn%2F0330c96e-a47c-4d42-be25-198c6d2a90fb.png?alt=media\&token=729d2782-be64-45e6-8a08-431454a82656)

As an owner, you can perform several options under the three vertical dots button (next to the last updated date in the list).

| **Symbol**                                                                                                                                                                                                                                                           | **Name**               | **Description**                                                                                                                                                                                 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FccxZFpTl8FRrvCDjiw7P%2FCleanShot%202022-10-06%20at%2012.37.59%402x%20copy%208.png?alt=media\&token=0a415e4d-5132-4152-b1dc-ee44cb3faa97) | View Ownership History | View the history of owners and transaction of chosen asset.                                                                                                                                     |
| ![](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FwXTDpc7Ev197fSdspWx7%2FCleanShot%202022-10-06%20at%2012.37.59%402x%20copy%206.png?alt=media\&token=c259b526-bdd4-4457-ac58-029c4443d9e1) | Verification Method    | Existence of the asset can be verified by a third-party. For this you should know the third-party public DID and type of Network.                                                               |
| ![](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FXgCVsnZdTDslUpC0pZRE%2FCleanShot%202022-10-06%20at%2012.37.59%402x%20copy%204.png?alt=media\&token=0d43460e-1ced-4dca-a57b-57d623f5c622) | Transfer Ownership     | Transfer ownership of your asset. For this you should know public DID of a new owner. As soon as a request submited your asset from _My assets_ tab will be moved to _Previously owned assets_. |
| ![](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FwWKpFyvfuyuxkkLGym1v%2FCleanShot%202022-10-06%20at%2012.37.59%402x%20copy%203.png?alt=media\&token=91478fdd-4ee3-48e4-845e-b19714bdb4b1) | Edit                   | At any time, you can set a personal name and icon for each of your items. For security reasons, assets names are blurred in the general list.                                                   |
| ![](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FJn8QEcRMuVNstjCbM5AR%2FCleanShot%202022-10-06%20at%2012.37.59%402x%20copy%205.png?alt=media\&token=c50823e6-24e5-4b19-bfa5-b664c4726cfa) | Generate QR-Code       | Generate a QR-code for a chosen asset.                                                                                                                                                          |
| ![](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2Fa5lEfixVLnRa7uihNbpC%2FCleanShot%202022-10-06%20at%2012.37.59%402x%20copy%207.png?alt=media\&token=9c884f66-6ab0-4c46-9519-bdb531a1902d) | Issue Claim to Asset   | Inform about Verified Claim of a chosen asset.                                                                                                                                                  |

Assets can be enroled to a role credential. By clicking on the `Enrolments` button (next to the asset name) you can see all roles that the chosen asset has. We recommend adding this issued claim to the asset's DID document so that you have the credentials you need in order to access the application with the appropriate role, you can use the `Publish` button to do this operation.

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FpBp43V0o3dlvOaO8sSLK%2FCleanShot%202022-10-06%20at%2012.53.05%402x.png?alt=media&#x26;token=605f9a43-5925-414a-a781-4dfe9995b6f4" alt=""><figcaption><p>Asset Enrolments Page</p></figcaption></figure>

## Governance

One set of functionality in the system relates to governance: managing organizations and applications. To explore this, click on the “governance” button from the system main screen. You should see a governance dashboard similar in appearance to the image below.

![Organization Management tab](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FfxCTPPzJW32yg37SfSWs%2F39ff0740-edc3-4e0f-95f2-4a9fd2946c0e.png?alt=media\&token=85c93259-b7aa-4d7b-9b38-c234698cf48a)

The system leverages the [Energy Web Name Service](https://medium.com/energy-web-insights/ethereum-name-service-ens-is-now-available-for-the-energy-web-a8d884138790) (an implementation of the Ethereum Name Service for Energy Web). With EWNS, you can organize your organization, any applications your organization owns/operates, and all roles within your organization or those applications.

{% hint style="info" %}
The development version of the system is built on Energy Web’s Volta test chain. As you set up your organization, applications, and roles, these will be anchored to Volta. We hope that you test out all available functionality, but we also recommend that you do not enter any sensitive information into the fields at this time. For example, when you create an application in part B below, use a test name if you wish to keep secret the real name of your application for now.
{% endhint %}

### Organization Management <a href="#a.-organization-management" id="a.-organization-management"></a>

The first tab within governance relates to _organization management_.

If you haven’t had an organization yet, you can add it by clicking on the “Create Organization” button. The system asks you to fill the form and submit the request.

![Create Organization form](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FsQUSI84AU6SZDsSmORc2%2F54b39424-0a56-40ec-8608-121621ec3642.png?alt=media\&token=0ca1ac92-9c3b-49b7-b872-ed0aee968036)

{% hint style="info" %}
The “Create Organization” button allows creating only one organization per wallet. After using, the button is hidden from UI.
{% endhint %}

Assume that you already own an organization, on the Organization management tab you can perform several options related to your organization and its EWNS namespace, each using the options under the three vertical dots button (next to an organization namespace in the list).

<table data-header-hidden><thead><tr><th></th><th width="146.33333333333331"></th><th></th></tr></thead><tbody><tr><td><strong>Symbol</strong></td><td><strong>Name</strong></td><td><strong>Description</strong></td></tr><tr><td><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FeVaRoHhg9xeqzkvUSFLH%2FCleanShot%202022-10-06%20at%2013.06.14%402x%20copy%208.png?alt=media&#x26;token=214259c1-81de-4dab-8057-474349874c3e" alt=""></td><td>View Details</td><td>View the basic details of your organization, including the logo, namespace, organization name, website, description, and other data.</td></tr><tr><td><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2F0FGEgwBmztnC4cMYJNnu%2FCleanShot%202022-10-06%20at%2013.06.14%402x.png?alt=media&#x26;token=5de163de-778b-434b-9fef-d4dee6aaeec7" alt=""></td><td>Create Sub-Organization</td><td>Create a new sub-organization owned by the organization. This allows you to define applications and roles for specific subsidiaries or business units within your organizational umbrella. For example, you might create “subsidiary1.exampleco.iam.ewc” and “subsidiary2.exampleco.iam.ewc” so that you can define applications and roles specific to those subsidiaries (as described in the following sections of this document).</td></tr><tr><td><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2F1Nk4FeFxd4wG0eGV1hRA%2FCleanShot%202022-10-06%20at%2013.06.14%402x%20copy%204.png?alt=media&#x26;token=20868ded-c35f-491c-b5ce-a7f3e3150d5e" alt=""></td><td>View Applications</td><td>View the applications owned by this organization (i.e., go to <em>application management</em> tab).</td></tr><tr><td><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FcGUuQobQllM69EHJ6hXC%2FCleanShot%202022-10-06%20at%2013.06.14%402x%20copy.png?alt=media&#x26;token=078b7f9b-022c-40ed-a247-5f1df0cede2a" alt=""></td><td>View Roles</td><td><p>View the roles associated with this organization or with any application owned by this organization (i.e., go to <em>role governance</em> tab).</p><p>Note that that are two kinds of roles:</p><ol><li>Roles associated with an organization - these roles are independent of any particular application. For example, you might create the role “global dApp admin” to manage all of your organization’s applications.</li><li>Roles associated with an application - these roles are specific to a particular application. For example, you might create the role “installer” or “renewable energy buyer” in an application that you own. These roles are not necessarily part of your organization.</li></ol></td></tr><tr><td><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2Fbqws302L57adqL2oAvIl%2FCleanShot%202022-10-06%20at%2013.06.14%402x%20copy%205.png?alt=media&#x26;token=8782180f-6cc5-4543-8419-0828b2c4df97" alt=""></td><td>Create Application</td><td>Create a new application owned by the organization.</td></tr><tr><td><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2F102xugLWMdfglQboxq0T%2FCleanShot%202022-10-06%20at%2013.06.14%402x%20copy%202.png?alt=media&#x26;token=edc49f3e-57f7-4a44-9b7d-1dcfa46b6ede" alt=""></td><td>Create Role</td><td>Create a new role associated with either this organization or a specific application owned by this organization.</td></tr><tr><td><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FdlnQ42XMIxEfTDfYjgeT%2FCleanShot%202022-10-06%20at%2013.06.14%402x%20copy%206.png?alt=media&#x26;token=dd74b964-5edf-4b28-9411-ecf6ba7a89d5" alt=""></td><td>Edit</td><td><p>Change the details of your organization. Please note that <strong>it is not possible to </strong><em><strong>change</strong></em><strong> the root namespace of an organization</strong>. For example, after you have defined “<code>exampleco.iam.ewc</code>" as your namespace, you could define subdomains (e.g., "<code>roles.exampleco.iam.ewc</code>" or "<code>applications.exampleco.iam.ewc</code>"), or you could define a new root namespace (e.g., "<code>exampleorg.iam.ewc</code>"), but you are not able to change the root namespace "<code>exampleco.iam.ewc</code>" into something different.</p><p>The “others (JSON)” field allows you to specify formatting-related details (e.g., color scheme) that should be applied, so that when you integrate the system into your decentralized applications the branding is consistent. For example, you could add into this field the text:</p><p><code>1{"bgcolor":"CDD3FF","txtcolor":"FF0000"}</code></p><p>The above text will set the background color for the system in your application to be the light blue color with hex code <code>CDD3FF</code> and the text color to be red with hex code <code>FF0000</code>. You can experiment with different formatting options.</p></td></tr><tr><td><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FazEvNGJCY1m6i0zOytPL%2FCleanShot%202022-10-06%20at%2013.06.14%402x%20copy%203.png?alt=media&#x26;token=31a70283-414a-4e6a-af5d-85b645f89ac3" alt=""></td><td>Transfer Ownership</td><td>Transfer ownership of your organization and its root namespace to another address.</td></tr><tr><td><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2F0HYiD8mW3svze6GCBnkE%2FCleanShot%202022-10-06%20at%2013.06.14%402x%20copy%207.png?alt=media&#x26;token=c3ddc407-60b4-4322-b5ce-f8eabce6ba9e" alt=""></td><td>Delete</td><td>Delete your organization.</td></tr></tbody></table>

### Application Management <a href="#b.-application-management" id="b.-application-management"></a>

After you have created an organization and set its root namespace, you may wish to set the namespace for decentralized applications your organization will own/operate.

The first step is to create the new application namespace, using the “create an application” option on the organization management tab. You will then see a pop-up with several fields to complete. Starting with step 5 of this process (registering the namespace for the app), you will be asked to confirm the transaction using your linked wallet.

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FkJAsAaEewlcI9BmRym9f%2FCleanShot%202022-10-06%20at%2015.52.58%402x.png?alt=media&#x26;token=a0159f9d-88c9-4f87-8d26-b16ebccc977b" alt=""><figcaption><p>Create Application pop-up</p></figcaption></figure>

Note that any application namespace you define will automatically be created under an “apps” subdomain within your organization’s namespace. For example, if your organization’s namespace is “`exampleco.iam.ewc`" and you wish to create a new subdomain for an application you call "DERmanager," then your resulting namespace will be "`dermanager.apps.exampleco.iam.ewc`" (the "apps" subdomain is added automatically, to organize applications separately from other subdomains).

After you have completed all steps to create the new application, your application management tab should appear similar to the image below.

![Application management tab](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2Fg6DUpjBeFsQ7sk21b4at%2Fe497ba16-a43f-4eb2-8240-ab9e7895d460.png?alt=media\&token=130e2b24-89d8-43b2-a656-711ce96c5623)

You have several possible actions, similar to your options under organization management. Note that you also have the option to filter your applications by the organization; this may be helpful if, for example, different subsidiaries within your corporate umbrella wish to manage applications separately, but you as a designated super admin need to be able to view all of them.

### Role governance <a href="#c.-role-governance" id="c.-role-governance"></a>

The final governance task is perhaps the most powerful use of the system, and it builds on the organization and application management functionalities described above. It is governance related to _roles_—not only roles within your organization but also roles that different users might have in your applications.

As noted above, the system allows you to define two types of roles:

1. Roles associated with an organization - these roles are independent of any particular application. For example, you might create the role “global dApp admin” to manage all of your organization’s applications. This role is created under your organization or chosen sub-organization on the Organization management tab.
2. Roles associated with an application - these roles are specific to a particular application. For example, you might create the role “installer” or “renewable energy buyer” in an application that you own. These roles relate to your application but are not necessarily part of your organization. This role is created under your application on the Application management tab.

For creating a role, you should fill the role definition form. You can find detailed explanation of the each step below;

#### 1. Set Role Name

At this step, you will choose an unique role name to host the role definition, full domain path will be shown including application and organization names. The system will prompt if the name is already in-use.&#x20;

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FZAjDeJR6hO5zKdnHbm76%2FCleanShot%202022-10-06%20at%2013.01.27%402x.png?alt=media&#x26;token=4fab8461-4f58-4a4c-a13a-cdee6bea753b" alt=""><figcaption><p>Set Role Name</p></figcaption></figure>

#### 2. Set Role Issuers

At this step, you will select who is allowed to issue this role. As a role definition creator, your DID will be listed as an issuer by default. You can easily override it by adding another DID or even a role name.&#x20;

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FSEhrd0vFw0wlm4i2q98U%2FCleanShot%202022-10-06%20at%2013.01.59%402x.png?alt=media&#x26;token=3837f085-58d0-4da2-8e1c-4446c837c663" alt=""><figcaption><p>Set Role Issuers</p></figcaption></figure>

#### 3. Set Role Revokers

At this step, you will select who is allowed to revoke this role. As a role definition creator, your DID will be listed as a revoker by default. You can easily override it by adding another DID or even a role name.&#x20;

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FRFLqJ8CKKYVk4DOGt5sA%2FCleanShot%202022-10-06%20at%2013.02.25%402x.png?alt=media&#x26;token=f05f2f74-a9d4-48a5-ae97-b0a15f4cf6c4" alt=""><figcaption><p>Set Role Revokers</p></figcaption></figure>

#### 4. Set Restrictions

At this step, you can define a precondition for the user to request this role from the issuer. The user needs to obtain the precondition role and publish it to its DID document and afterwards can continue to requesting this role.&#x20;

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FPwegZ13WKEruvDfx5dBl%2FCleanShot%202022-10-06%20at%2013.02.42%402x.png?alt=media&#x26;token=56d48267-3782-4e8f-81e5-1617d89f5e6c" alt=""><figcaption><p>Set Restrictions</p></figcaption></figure>

#### 5. Set Default Validity Period

At this step, you can define a default validity period to guide the issuers. The issuers have authority to override it at the time of the issuence.&#x20;

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2F22TnOH29PdQsevvC3C5f%2FCleanShot%202022-10-06%20at%2013.03.02%402x.png?alt=media&#x26;token=a60bc765-ebf5-456f-b0b2-b1aff11a5812" alt=""><figcaption><p>Set Default Validity Period</p></figcaption></figure>

#### 6. Set Requestor Fields

At this step, you can create custom input fields that will be used to collect data from the user at the time of the role request. This data is only for the issuer to get some more information about the user before the issuence. The data is not stored on the role credential.&#x20;

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2F67jHVVdUrJFtoqUuGeWP%2FCleanShot%202022-10-06%20at%2013.04.08%402x.png?alt=media&#x26;token=99e64813-5cde-4013-b7cd-e5b8b3a50d18" alt=""><figcaption><p>Set Requestor Fields</p></figcaption></figure>

#### 7. Set Issuer Fields

At this step, you can create custom input fields that will be used to collect data from the issuer at the time of the issuence. The data will be stored on the role credential.

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FlPooY3YPNd4WuCfoAE8r%2FCleanShot%202022-10-06%20at%2013.04.44%402x.png?alt=media&#x26;token=a5a46ec6-aa17-4ca1-b525-b08787c49ebf" alt=""><figcaption><p>Set Issuer Fields</p></figcaption></figure>

When you have at least one role, the role governance tab should look similar to the image below.

![Role governance tab](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FR28KMghhHpOA6ZP1I791%2F9b22bbe0-e75c-4602-a68b-87e4f36684a9.png?alt=media\&token=ce960c1e-2f34-4120-990e-5a273e64a221)

Each role in the list has the same list of options: View Details, Edit and Copy Role Enrolment URL. The first two are the same as we described above. By choosing the latter one you will copy a link to a URL that others can use to enroll as that role type. You will try this in the next section of this document below.

## Enrolments <a href="#vi.-enrolments" id="vi.-enrolments"></a>

Users of the system can use the _enrolments_ functionality in two ways. Recall that, because the system uses a decentralized system of identity and access management, any person can own a DID and add claims verified by authorities, which are then used to take on roles in applications. This system of enrolment has three key users:

1. An authority (issuer) who can verify claims about users, so that the users can add the verified claims to their DID documents (and use them to enroll in an application).
2. Users who request claims from authorities, so that users can add the verified claims to their DID documents.
3. The owner of an application, who specifies what claims (the content of the claim, and from whom) are required in order to enroll in that application.

{% hint style="info" %}
Example: Imagine you wish to deploy an application related to electric vehicle smart charging. Your application might include the roles of _vehicle owner_, _vehicle manufacturer_, \_\_ and _vehicle dealer_. In order for a DID to enroll in your application as a vehicle owner, you might require a verified claim from a vehicle dealer that this DID is in fact the person to whom it sold a particular vehicle (you might require many more claims, including claims from the manufacturer about the vehicle’s model, identification number, battery capacity, and other things, but let us keep the example simple for now). In this example, you can use the system to set up these roles and requirements: a DID can enroll in you application as a vehicle owner only if it has a verified claim from a dealer that the DID is the owner of the vehicle.
{% endhint %}

Returning to the work you have done so far, you have set up the required claims and issuers. Now let us see how a new user can enroll in an example application. First, ensure you have the enrolment URL. Next, open a new browser window, and paste that URL in the navigation bar. This will load the sign-in page, and you can sign in with your existing address (i.e., the same DID and thus the same user) or create and sign in with a new wallet address (simply create one in your mobile wallet or MetaMask browser extension) if you wish to test this from the perspective of a new user. Either way, you will see an enrolment screen similar to the example below.

{% hint style="info" %}
If you wish to use more than one DID, then it is recommended to either (a) use a different browser for each user or (b) use a browser extension that manages multiple sign-ins to a single website, such as [SessionBox](https://sessionbox.io/).
{% endhint %}

#### Submit Enrolment Request

![Enroll in a role form (example)](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2F7U3N9eH6hduGJgwWezAh%2Fd500dba4-8a12-40c3-9966-b37950f4e085.png?alt=media\&token=e8330d12-f4ae-4e8d-9706-f866823a97f3)

When you complete these fields and register, the system sends the enrolment request to the issuer(s) who had previously been specified to approve the role.

#### Accept Enrolment Request

Return now to your sign-in as the issuer who can _approve_ the role. The issue will be informed about the new request by Task Manager in the top navigation. The notification’s bubble disappears as soon as the task has been completed.

![Task Manager list](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FU1DzYnKkAwbSSZfkbFuV%2F26e428cb-ea82-416b-b32f-ec4ac3952c38.png?alt=media\&token=170ce0eb-57a3-4e9d-b092-bbb5a4be2e67)

Your enrolments screen should display the request from the new user.

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FCyZwj3IdaZCQJpNWRQb7%2FCleanShot%202022-10-06%20at%2016.00.50%402x.png?alt=media&#x26;token=e0df94f8-f370-4c5e-a694-04c38a006f1b" alt=""><figcaption><p>Enrolment Requests Tab</p></figcaption></figure>

“View Request” pop-up under the three vertical dots button contains information about the requestor, chosen role, and the fields from the enrolment form. If you approve this request, you have issued a _verified claim_ that the new user can add to that user’s DID document and thereby access your application in the appropriate role.

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FkC28QvVl4g4J192T7gwm%2FCleanShot%202022-10-06%20at%2016.30.45%402x.png?alt=media&#x26;token=8982f87e-3c59-44c2-b5a2-5922f3ec30b3" alt=""><figcaption><p>Role Issuance pop-up</p></figcaption></figure>

Return one final time to the new user’s sign-in. You can view this pending role request on your “my enrolments” screen, which should appear similar to the image below.

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FBm0uAakPncJdyTZPWn0Q%2FCleanShot%202022-10-06%20at%2016.49.30%402x.png?alt=media&#x26;token=812ebc4f-8357-4b54-ab8f-5ca36ecb2d2d" alt=""><figcaption><p>My Enrolments Tab</p></figcaption></figure>

#### Publish the Role Credential

You can add this newly received role credential to your DID document and publish it to on-chain ClaimManager smart contract, so that you have the credentials you need in order to access the application with the appropriate role. Use the “Publish” button, in order to publish the role credential.

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FypNPT7PCoRQWWHT4oW4G%2FCleanShot%202022-10-06%20at%2016.52.28%402x.png?alt=media&#x26;token=9118e458-923d-4d98-8de3-4c9bdfd199ab" alt=""><figcaption><p>Publish option</p></figcaption></figure>

#### Revoke a Role Credential

You can also revoke a role credential if your DID is listed as one of the revokers. In order to revoke a role credential, you should navigate to "Revocable Enrolments" tab and click "Revoke Off-Chain Enrolment" or "Revoke On-Chain Enrolment" to revoke.

<figure><img src="https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2F51OM6imz4pUd0gMaLR0T%2FCleanShot%202022-10-06%20at%2016.53.51%402x.png?alt=media&#x26;token=cb661150-d289-4845-a5e7-a1dac31216cc" alt=""><figcaption><p>Revocable Enrolments tab</p></figcaption></figure>

## Search <a href="#vii.-searching-for-organizations-and-applications" id="vii.-searching-for-organizations-and-applications"></a>

Because the system leverages EWNS, it is instantly possible for any user to search for organizations and applications that have defined namespaces.

To see an example, return to the main landing page by clicking on the system logo in the top left of your browser window. Your screen should appear similar to the image below.

![Search bar on the Dashboard](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2F9PNhCwek8Y1XrYV2UMMz%2Fcace0423-25ab-452d-97de-8b537f96c594.png?alt=media\&token=87f6f011-6f67-4061-a612-2fd9378e38d7)

In the search bar below your name and address, enter any search term. Try “flex” for an example. The system will display all organizations and applications that have the word “flex” in their EWNS namespaces. You are likely to see many examples and test applications. When you click on any of these, you will see the relevant public information associated with this namespace. For example, clicking on the Energy Web Flex (example) “application” displays information about that app, including the roles defined in that app’s namespace. In this way, you can view what roles (user types) are part of a given application.

![](https://2400236058-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_pXALj14Egb-5Bal_p%2Fuploads%2FdMSa4hG7Hs0ByktSPzBP%2F91d4cdca-cd64-4707-b5ee-4990804ed71a.png?alt=media\&token=8c9753ec-5db9-4279-ae25-8e38b9722736)

You can even request to enroll your DID in one of these roles directly from this screen, using the action buttons in the roles list at right. Your enrolment request will be submitted to the relevant issuer, as defined by that app owner via the process described in Part V of this document.
