Skip to content

User Management

tylerstalder edited this page Sep 19, 2011 · 4 revisions

Create first admin

Currently, user group assignments are managed in the user.group_membership_bitmask field in the database. This is managed as a bitmask. The default group can be designated with the bitmask of four binary digits 0000. So, this means that:

  • 1 = Regular issuse.
  • 2 = Super Admin only.
  • 4 = Moderator (admin) only.
  • 8 = Leader only.

To create first user, update the desired account user.group_membership_bitmask field to 2.

Old Way

There is no automatic creation of a root user when the application is installed, so we have to do a little magic.

  1. Create a user through the regular process: http://localhost:8080/join#start
  2. Directly in the database, add an entry in the following table: user__user_group
    • user_id: 1 (or if you are not the first user for some reason)
    • user_group_id: 1
  3. You can now access the admin section: http://localhost:8080/cms/admin

Roles

There are currently 4 different kinds of users defined in the dataabse.

  • Regular authenticated user. This kind of user does not actually have a role set to them.
  • City Leader [leader]: This user has a different banner on their user account page and has the ability to endorse a project.
  • Admin [moderator]: This has the following access ??
  • Super Admin [admin]: This can do everything, specifically create new users with administrative privileges.

Managing privileged users

  1. Go to http://localhost:8080/cms/admin#add-admin,main
Clone this wiki locally