Creating a New User Group
At present, there is no way in MODX Revolution to apply security restrictions to individual users. All security restrictions apply to user groups, so restricting a user means that you have to create a user group, add the user to it, and create security permissions for that user group.
Here are the steps for creating a new User Group:
- Go to Security | Access Controls
- Click on the "User Groups" tab if it is not the current tab
- Click on the "New User Group" button
- Enter a name and description for the User Group
- Click on the Save button in the dialog
Although you can assign a role for each user later, it will save you time and trouble if you create a role for your users before adding them to the group.
To add users to the User Group:
- Right-click on the User Group
- Select "Add User to Group"
- Select the user and (optionally) the user's role using the drop-down menu
- Click on the "Save" button in the dialog.
Tip: It's a *very* good practice to add the admin Super user to every User Group you create with a role of admin Super User. That way you won't end up accidentally hiding resources from the admin when you implement security restrictions.
My book, MODX: The Official Guide is now available for order here. The book is currently being shipped.
If you have the book and would like to download the code, you can find it here.
If you have the book and would like to see the updates and corrections page, you can find it here.
MODX: The Official Guide is 772 pages long and goes far beyond this web site in explaining beginning and advanced MODX techniques. It includes detailed information on:
- Installing MODX
- How MODX Works
- Working with MODX resources and Elements
- Using Git with MODX
- Using common MODX add-on components like SPForm, Login, getResources, and FormIt
- MODX security Permissions
- Customizing the MODX Manager
- Using Form Customization
- Creating Transport Packages
- MODX and xPDO object methods
- MODX System Events
- Using PHP with MODX
Go here for more information about the book.
Thank you for visiting BobsGuides.com
— Bob Ray
Bread
