All Collections
User Guides
User Management: Managing Organizations as an End User
User Management: Managing Organizations as an End User

Give your End Users enough permissions to create, edit, and manage Organizations on their own.

S
Written by Sergio M
Updated over a week ago

All Ubidots accounts begin with a single App which can be accessed by users under a specified permission role to view, create, or edit resources within it. Here's a quick reminder of Ubidots' hierarchy:

  1. Ubidots License Admin: A person who manages the Ubidots Account at industrial.ubidots.com, its App(s), Devices, Dashboards, Events, Organizations, Roles and Users. Ubidots accounts may have one or several admins.

  2. App: An IoT portal that contains organizations and is defined by a set of configurations for its appearance, domain, locale, visible features, and language.

  3. Organization: An entity containing devices, dashboards, events, tokens, and users. Users may have permissions over one or multiple organizations.

  4. Role: A group of permissions which specify the type of access (create, view, edit, and/or delete) a user has over the entities contained in the Organization(s) they belong to.

  5. User: A password-protected account that has access to one or several Organizations through an App, and engages with them based on the particular Role that the user has been given.

Given that End Users may belong to one or more Organizations, this article explains how to give them permission to create, edit, and manage the Organizations they belong to. Please check these other articles to get familiar with how Organizations, Roles, and Users work:

Requirements:

1. Create or edit a Role with Organization management permissions

In order to allow users to manage the Organizations they belong to, you'll have to create or edit a role, and enable the corresponding permissions.

  1. Go to the roles list under the Users tab. Select the role you would like to edit or create a new one from the upper right “+” button.

  2. In the permissions section, select the Organization management permissions that Users with this role should have. Save changes by clicking the green check mark.

2. Create or edit an End User with an Organization Management Role

Now that the manager role has been created, you have to assign this role to users that will be performing these privileged actions:

  1. Go to the Users list under the Users tab. Select the user you'd like to edit or create a new one by clicking on the "+" button, located in the upper right corner.

  2. In the "select role" step, select the Manager role you just created/edited. Finish the creation process, or save changes, by clicking the “save” or "next" button, respectively.

When creating a User:

When editing an existing User:

IMPORTANT NOTE: Users with an organization management role will ONLY have permissions over Organizations they belong to.

Setting a Default Organization

Finally, remember to specify a default Organization for the end user. This allows our system to know where to assign resources created by the end user.

Although an optional step, this is especially important for Organization management; if an end user removes a resource (device, dashboard, etc.) from an Organization, then it will be automatically assigned to the end user's default Organization. If none is specified, then the resource will be freed and unassigned from any Organization, so it won't be visible by the end user anymore — though it would still be visible by the account Admin.

To set a Default Organization, simply click on the "Edit" button of the end user, and select an Organization from the dropdown menu:

3. Managing Organizations as an End User

Once logged in as an end user in your application, you should see the “Users” tab in the navbar, with the option "Organizations":

From this view, the user will be able to create, edit, manage, or delete existing Organizations, based on the permissions you provided. It follows the same flow as creating/editing Organizations from the Admin Account:

Finally, in order to add Devices, Dashboards, or Events, to an Organization, go to the respective Organization, select the resource you'd like to add, and then click on the "+" button in the upper right corner:

Note that the resources listed are only those belonging to all Organizations the end user belongs to. Once added, they will be moved from their original Organization, to the one being edited.

You can further filter what your end users get to see or interact with in the app by using tags. Users can only see, in the app, the entities (dashboards, devices, reports, events, and users) that they share a tag with. Learn more about tags here.

Did this answer your question?