Skip to content
Report · Administration

Roles in use

Every active role with how many active employees hold it, with a click through to who they are.

  • access review
  • security
  • drill-through
Sample preview, fictional dataYour own figures appear after import.

01

About this report

Each active role with its centre type, whether it is a sales, support or web-services-only role, and the number of active employees with login access who hold it.

Roles nobody holds are candidates for inactivation. Roles held by many people deserve a permission review. Click Users to open Users and roles filtered to that role.

02

Sample preview

Fictional figures in the shape you will see. Yours come from your account.

RoleCentre typeSales roleSupport roleWeb services onlyUsers
Employee CenterEMPLOYEECENTERNoNoNo38
AccountantACCOUNTCENTERNoNoNo4
Sales ManagerSALESCENTERYesNoNo3
AdministratorACCOUNTCENTERNoNoNo2
Warehouse ManagerSHIPPINGCENTERNoNoNo0

03

The SuiteQL

This is the query each report runs. Read it, copy it, or change it after import.

Roles in use
SELECT ro.name AS role,
       ro.centertype AS center_type,
       ro.issalesrole AS sales_role,
       ro.issupportrole AS support_role,
       ro.iswebserviceonlyrole AS web_services_only,
       COUNT(DISTINCT e.id) AS users
  FROM role ro
  LEFT JOIN employeerolesforsearch er ON er.role = ro.id
  LEFT JOIN employee e ON e.id = er.entity AND e.giveaccess = 'T' AND e.isinactive = 'F'
 WHERE ro.isinactive = 'F'
 GROUP BY ro.name, ro.centertype, ro.issalesrole, ro.issupportrole, ro.iswebserviceonlyrole
 ORDER BY users DESC, role
Users and roles
SELECT e.id AS employee__id,
       e.entityid AS employee,
       e.email AS email,
       e.title AS job_title,
       BUILTIN.DF(e.supervisor) AS supervisor,
       ro.name AS role,
       ro.centertype AS center_type,
       ro.iswebserviceonlyrole AS web_services_only
  FROM employee e
  JOIN employeerolesforsearch er ON er.entity = e.id
  JOIN role ro ON ro.id = er.role
 WHERE e.giveaccess = 'T'
   AND e.isinactive = 'F'
 ORDER BY employee, role

ReportAdministration

Roles in use

Screenshot of the Roles in use report in HiScale Advanced Reports, filled with fictional sample data
Sample preview, fictional dataOpen image full size (opens in a new tab)