ZauberCMS
  • 🪄Welcome to ZauberCMS
  • Getting Started
    • 💡Quick Start
      • Databases
  • Creating A Website
    • 📹Website Build Video Tutorial
    • Content Types
      • Element Types
      • Compositions
    • Current Content Properties
      • Textbox & Textarea
      • Text Editor (Radzen)
      • Text Editor (TinyMCE)
      • Numeric
      • True / False
      • Rating
      • Checkbox, Dropdown & Radio Lists
      • Media Picker
      • Navigation
      • Material Icon Picker
      • Content Picker
      • Date Picker
      • Custom Component Picker
      • Api Key Picker
      • Colour Picker
      • Block List Editor
      • Editor Notes
      • Google Map Location Picker
      • Simple List Manager
      • Simple Dictionary Manager
      • SEO Property
      • Code Editor
      • Colour Theme Picker
    • Content
      • Publish & Unpublish
    • Querying Data
      • Extension Methods
    • Views
    • Controllers (Route Hi-Jacking)
    • Custom Components
    • Users & Roles
      • Restrict Access By Role
    • Logs
    • Audit
    • Global Settings
      • Using Global Settings
    • SEO Sitemaps
    • Hosting
  • Extending ZauberCMS
    • Overview
    • BlockListEditor
      • Content Block Preview
      • Content Block
    • Custom List Data
    • Custom Content Property
    • Custom Validation
    • Custom Admin Sections
      • Section Nav Group Menu
      • Trees
        • Tree Context Menus
      • Reusing Content Editors
    • Saving Custom Data
    • Using AppState Events
    • Before & After Save
    • Email & Storage Providers
    • Seed Data
    • SEO Checks
  • Identity
    • Overview
    • External Authentication Providers
    • Account Layout
  • Language
    • Overview
    • Adding Language Dictionaries
    • Setting The Language
    • Using Language Dictionaries
  • AppSettings
    • Detailed Errors
    • Media Settings
    • Enable Path Urls
Powered by GitBook
On this page
  • Users
  • Roles
  • User & Role Content
  1. Creating A Website

Users & Roles

PreviousCustom ComponentsNextRestrict Access By Role

Last updated 10 months ago

ZauberCMS uses the built in Identity system to .Net and Blazor, there are some quirks using it with Blazor, and you can read more below.

Users

Users lists everyone who has registered for your website, whether they are an admin or not. You can filter via role, and click on the user to edit their content (See below) or change their roles, to update their email address.

Roles

Roles work like any other .Net application, and you can create specific roles for specific use cases. When there are no users on the site (i.e. First install) the first user to register will be assigned an admin role and you will be redirected to the admin.

Any subsequent user who registers, will be assigned the default role (Member) that is set in the appSettings.

"NewUserStartingRole": "Member",

If you want users to use a different default role name, then change it here.

User & Role Content

Just like Content, you can assign Content Types to roles. So any user in a specific role will get that content.

This is different from the main content, as you can add many roles to a user, meaning the User will get all the properties from all Roles. If a role is removed, the properties are removed.

Querying / Getting Data

You use exactly the same syntax with a User as you do Content to get the data, read the below

Identity
Querying Data
Example of adding an RTE to a Role
Example of the RTE being shown on a User in the Admin role