Users

Users

This page describes Open-AudIT version 7. Content for earlier versions is kept further down the page, under Pre version 7.

Users

What is it?

Users is where the people go. Every account in Open-AudIT is a user with two lists attached: the roles that say what they're allowed to do, and the orgs that say whose things they're allowed to do it to. Get those two lists right and everything else about access control follows.

You'll find it at menu > Admin > Users.

What does it do?

An account is a handful of fields. A name to log in with, a full name, an email address, a password, a primary organisation, and a language and toolbar preference. Then the two lists that matter: roles and orgs.

Roles decide what. The shipped roles cover almost everyone: user reads, org_admin manages the inventory, admin runs the application. Roles stack permissively, so someone with user and org_admin can do whatever either allows. The full story is on the Roles page.

In a little more detail, the shipped roles break down like this.

Role

What it grants

admin

The application-wide collections, things like configuration, the database, logs, auth methods, orgs, roles, tasks and users. Someone administering Open-AudIT itself usually holds admin and often org_admin as well.

org_admin

Create, read, update and delete on the collections that carry an org_id column, which is nearly all inventory data.

user

Read-only access to the collections that carry an org_id column.

Custom roles, for finer control than the shipped three, are a feature of Open-AudIT Enterprise.

Orgs decide which. A user acts only on items belonging to their orgs. Organisations form a tree, and access flows down it. Give someone an org and they get its descendants too, which is why the create form notes that picking a parent quietly grants the children. A handful of collections also flow the other way, so users in a child org can see and use things defined at the parent. Those collections are agents, attributes, benchmarks (with their policies and exceptions), dashboards, discovery scan options, executables, fields, files, groups, queries, roles, rules, scripts, summaries and widgets, letting you define shared things once at the top.

Every action is checked against both. Roles first, is this action allowed, then orgs, does this item belong to them. Both must say yes, so a reader can't edit their own org's devices and an org_admin can't touch another org's.

Accounts can come from your directory. With an Auth method configured for authorisation, users are created automatically at first logon, with roles and orgs assigned from directory group membership and details filled in from the directory. Local accounts and directory accounts coexist, and the local fallback means the admin account works even when the directory doesn't. The Auth page has the details.

For more depth on how the three concepts interact, see the FAQ page Users, Roles and Orgs.

Why?

Everyone gets exactly the view they need. The helpdesk reads, the site admin manages their site, the MSP customer sees precisely their own org and nothing beside it. One inventory, many correctly-sized windows onto it.

The org tree does the heavy lifting. Structure your orgs like your organisation, and access mostly assigns itself. A regional admin gets the region, and every site under it comes along automatically.

Accountability has names on it. Edits and actions are recorded against the user who made them, which is only meaningful when people aren't sharing a login. Accounts are cheap, shared accounts are expensive later.

How?

1. Create the account. Go to menu > Admin > Users > Create Users. Name, full name, email, password, primary organisation, then tick the roles and the orgs. Remember the tree. A parent org includes its children whether or not they show ticked. There's an import at menu > Admin > Users > Import Users for bringing in a list, and menu > Admin > Users > Default Users shows what ships out of the box.

The Create Users form in version 7

The Create Users form in version 7.

2. Start people minimal. The user role on their own org answers most requests, and upgrading someone later is one edit. Handing out admin because it was quicker is how every access review ends up longer.

3. Or let the directory do it. If an Auth method with authorisation is configured, skip the manual creation entirely. Put people in the right directory groups and their account, roles and orgs assemble themselves at first logon.

When someone's access looks wrong, check both lists before changing either. "Can't see the devices" is nearly always orgs. "Can see them but can't edit" is nearly always roles.


Pre version 7. Everything below this line describes Open-AudIT before version 7. Menus, screens and behaviour may differ.

Pre version 7

Introduction

The User endpoint allows you to manage user accounts within Open-AudIT.

How Does it Work?

A user has a primary Org as well as a list of Orgs they can access. A user combines this with a list of assigned 'Roles' that define what actions they can take on items assigned to the Orgs they have access to. The combination of a users 'orgs' and 'roles' define what they can and cannot do within Open-AudIT.

Creating a User Entry

Join Paul McClendon, an Opmantek Support Engineer, as he demonstrates how to create a new user in Open-AudIT

A user entry can be created using the web interface if the current user logged in has a role that contains the user::create permission. Go to menu: Manage -> Users -> Create Users. Also can be created from the Users View, using the "+" button.

To add a new user to Open-AudIT you have to provide the details of that person, assign the organization, select the relevant Roles (multiple roles can be selected), select if the user is active or not, etc. In addition, you must grant permission to that user to access one or more organisations. It is important to notice that selecting a parent organization will automatically provide access to its children.

 

 

View Users Details

Go to menu: Manage-> Users -> List Users.

You will see a list of users. You can view a user by clicking on the blue view icon. You can also edit or delete users.

 

 

Database Schema

The database schema can be found in the application is the user has database::read permission by going to menu: Admin -> Database -> List Tables, then clicking on the details button for the table.

 

API / Web Access

You can access the collection using the normal Open-AudIT JSON based API. Just like any other collection. Please see The Open-AudIT API documentation for further details.