---
title: "User roles and permissions, built from a description"
description: "Describe who should see and change what, and Hercules builds roles and permissions into your app. Approve new users, add admin roles and limit sign-up."
---

# User roles and permissions, built from a description

Tell Hercules who should see and change what, and it builds roles and permissions into your app. Office managers can see invoice totals while technicians see only their own jobs.

- **Roles from a description.** Name each role and what it can do, and Hercules builds it.
- **Approval before access.** Require an admin to let each new user in.
- **Role checks in audits.** Check whether admin actions verify the caller's role.

## What can you do with roles and permissions?

### Describe the roles your business has

Tell Hercules the roles you need, such as dispatcher, technician and office manager, and what each one can do. Ask it to let you customize each role's permissions, and it builds that too. [Roles and permissions](https://hercules.app/docs/apps/users-auth/users-roles-permissions#how-do-i-manage-permissions-and-role-based-access)

### Approve new users before they get in

With a sign-up approval flow, new users can create a login but can't open the app until an admin approves them. Hercules adds the flow from a one-sentence request. [Approval flow](https://hercules.app/docs/apps/users-auth/users-roles-permissions#how-do-i-approve-users-before-signing-in)

### Add admin and superadmin roles

Ask for admin and superadmin roles, and describe what a superadmin can do beyond an admin. If your app serves other businesses, give the admin role access to every customer organization. [Admin roles](https://hercules.app/docs/apps/users-auth/users-roles-permissions#how-do-i-create-admin-and-superadmin-roles)

### Limit who can join at all

Sign-in rules decide who can create a login before any role applies. Approve email addresses or your company's domain, and Hercules blocks everyone else. [Sign-in rules](https://hercules.app/docs/apps/users-auth/sign-in-rules)

### See every user

The Users & Access tab lists everyone who has signed up, with their email, sign-up date and status. The Users table in the Database tab holds more detail. [Users](https://hercules.app/docs/apps/users-auth/users-roles-permissions#how-do-i-see-my-users)

### Check role restrictions

Hercules Security audits check that admin actions verify the caller's role and that users can't raise their own role. A failing check has a fix button that starts a chat to fix it. [What gets checked](https://hercules.app/docs/apps/security#what-gets-checked)

## How do you set up roles?

### 1. Describe the roles

> Office managers see everything, including invoice totals. Dispatchers assign jobs. Electricians see only their own jobs and can upload photos.

Hercules sets up each role and what it can see and do.

### 2. Add approval

> Add a sign-up approval flow so new users need to be approved by an admin before they can access the app

Hercules adds the approval step. New electricians then wait for an office manager's approval before they see any jobs.

### 3. Check the roles

Open Security and click Run security audit. Hercules scores the app and lists any failing role check under Issues, ready to fix. [Security audits](https://hercules.app/docs/apps/security)

## What has a business built with it?

Ron Ramsey founded The Ice Cream Hut, a Florida ice cream franchise with three corporate stores and two franchises. He built one portal on Hercules for invoicing, HR and franchise onboarding. Documents such as production manuals and territory maps live behind role-based logins, and Ron estimates the portal saves him 10 to 15 hours a week.

> We rebuilt our entire internal software system on Hercules: from our marketing website to invoicing, to our internal portal for franchise owners, everything is now under one roof.

Ron Ramsey, Founder, The Ice Cream Hut

Read the [Ice Cream Hut story](https://hercules.app/customers/ice-cream-hut)

## What should you know before you start?

- User impersonation isn't available, so an admin can't sign in as a specific user.
- Editing sign-in rules needs a paid plan, and the [pricing page](https://hercules.app/pricing) shows which plan includes each feature. Apps created before Hercules Auth 2.0 need a one-time upgrade first.

## Related features

- Use [Hercules Auth](/features/authentication) to set the sign-in methods when you decide how people get in.
- Use [Single sign-on](/features/single-sign-on) to let staff use their work login when IT manages logins in a service such as Okta.
- Use [Hercules Security](/features/security) to test your roles and data access when you're ready to publish.
- Use [Database](/features/database) to look up users and their records when you need to check who has what.

## How do you get started?

Describe the people who use your app and what each one should do. Start building.

## Frequently asked questions

### Can I change a role's permissions later?

You can change what a role can do at any time by asking Hercules. Each change is a new version you can restore from the [Versions tab](https://hercules.app/docs/apps/version-control).

### Do roles apply to people who sign in with single sign-on?

Roles apply to single sign-on users like anyone else. Hercules creates a user in your app the first time someone signs in with [single sign-on](https://hercules.app/docs/apps/users-auth/single-sign-on).

### Can I export my users?

A [database export](https://hercules.app/docs/apps/export-data) on a paid plan includes every user, because users live in your app's users table. If you run the app's database outside Hercules, you need to reconfigure its sign-in.

### Can a user give themselves admin rights?

A user can give themselves admin rights only if the app's permissions let them change their own role. Say who can change roles when you describe them, such as "Only office managers can change someone's role."

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Can I change a role's permissions later?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "You can change what a role can do at any time by asking Hercules. Each change is a new version you can restore from the Versions tab."
      }
    },
    {
      "@type": "Question",
      "name": "Do roles apply to people who sign in with single sign-on?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Roles apply to single sign-on users like anyone else. Hercules creates a user in your app the first time someone signs in with single sign-on."
      }
    },
    {
      "@type": "Question",
      "name": "Can I export my users?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "A database export on a paid plan includes every user, because users live in your app's users table. If you run the app's database outside Hercules, you need to reconfigure its sign-in."
      }
    },
    {
      "@type": "Question",
      "name": "Can a user give themselves admin rights?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "A user can give themselves admin rights only if the app's permissions let them change their own role. Say who can change roles when you describe them, such as \"Only office managers can change someone's role.\""
      }
    }
  ]
}
```
