Jumpstart docs logo Back to the app

Users

Jumpstart provides several pieces of functionality for users to make developing applications easier.

Admins

Users with the admin flag set to true will be allowed to access the application's admin interface (built with Administrate), Sidekiq web UI, and more.

To set a user as an admin, simply update their admin flag: Jumpstart.grant_system_admin! user from the Rails console.

You can check this flag if you would like to restrict any functionality only to admin users.

Personal Accounts

Every user has a personal account that's only usable by themselves, so you can easily associate resources to accounts and still have private resources to a user.

Make sure to add account:references when generating your models.

If you'd like a resource to be shared across a Account, you can scope your controllers to the current account so the resources are shared between users in the associated account.

Account Roles

Users can be assigned a role for each account they are a part of. By default, we only provide an admin role, but you can add more rules in app/models/account_user.rb. These roles will be listed in the UI when adding or editing a account member.

You can check the role on the account member to restrict access to certain functionality on the account as needed.

OAuth Connected Accounts

Users can sign up or login with connected accounts. We automatically add links based upon which OmniAuth providers are enabled. By default, Jumpstart has options for a few OmniAuth providers, but you're free to add other providers and they will be automatically added to parts of the UI.