Setting or modifying user roles

(Getting Ready) Scenario description

This recipe describes how a developer or an integrator can change the role of a new user with the interface of the INTER-FW. In INTER-IoT, the role of a user defines the interoperability levels and operations that a user can control. Thus, a user with a role capable only to see the device level interoprerability menus, will enter INTER-IoT and see only these menus, being hidden the semantic, middleware, services, network layers. Also the role can control if a user can only see, modify or change security and roles. This is especially useful in real scenario when there are large numbers of users with different organizations. As in all recipes related to the INTER-FW usage, the deployment has very simple requirements: a computer connected to the Internet and access to the Identity Server.

Identity server

Recipe ingredients

Hardware: One computer, Internet access infrastructure

Software: An operative system. In the example we will use Ubuntu 18.04. INTER-FW deployed locally or in a remote server. Identity server deployed in reachable servers.

(How to Do it) Software deployment

Step 0. Login with an Administrator user.

Step 1. Click tab 'Users management' of the INTER-FW left menu bar.

Step 2. Click over a user to modify its configuration.

Step 3. A form appears showing the different details of the user:

Step 4. Go to the 'Roles' tab

Step 5. Modify the roles applied to this user. The list of roles represents all the possible operations that can be done in INTER-IoT user interfaces.

Step 6. Click 'Save' to update the roles.

Step 7. Log out and Log in with the modified user to see the changes.

(How it Works) Running and collecting results

Once a user is created, it can log in INTER-FW or in the API Manager and the session will be preserved across the different web interfaces.

(More…) How to deploy in a remote server

Alternatively, for large amounts of information in large-scale deployments, the users can be introduced directly to database by creating a SQL script.