Home » Setups and Roles » Roles and Capabilities
Roles and Capabilities
What Are Roles and How to Assign Them to a Setup?
Roles in QuickBuildWP define user permissions and capabilities specific to a setup. Assigning roles ensures that users have appropriate access to features, modules, and administrative functions. This guide explains what roles are and how to assign them to a setup effectively.What Are Roles?
Roles are predefined user permission sets that determine what actions users can perform within a specific setup. They control access to various modules, settings, and administrative features. Roles simplify permission management by grouping capabilities under a single identifier.How to Assign Roles to a Setup?
Follow these steps to assign roles to a setup in QuickBuildWP:Step 1: Access the Roles Section
- Navigate to the Setup Page.
- Find the Roles option located beside the Edit link of your desired setup.
- Click on Roles to manage or create new roles specific to that setup.
Step 2: Create a New Role
- Click on the Add New Role button.
- Specify the Role Name:
- Enter a unique role name in lowercase letters without any spaces (e.g.,
content_manager
,editor_admin
).
- Enter a unique role name in lowercase letters without any spaces (e.g.,
- Add Options (Optional):
- Use the Options field to define additional parameters for this role in JSON format.
- Example:
{ "can_edit_posts": true, "can_manage_users": false }
Step 3: Assign Capabilities
- Use the provided Checkboxes to assign capabilities to this role.
- Example capabilities:
edit_posts
,manage_users
,view_reports
- Example capabilities:
- Authorize the Role (Optional):
- Click the Authorize link to assign all capabilities automatically based on the modules enabled for this setup.
- This ensures that the role receives all relevant permissions without manual selection.
Step 4: Assign the Role to a User
- Create a New User:
- Navigate to User Management and Add New User.
- Fill in the user details and assign the created role from the dropdown list.
- Login as the New User:
- The new user can now log in using their credentials.
- After logging in, they will see the Setup options relevant to their assigned role.
Best Practices for Role Management
- Use Descriptive Names: Role names should clearly indicate their purpose.
- Assign Minimum Permissions: Follow the principle of least privilege to enhance security.
- Review and Update Regularly: Periodically review roles and permissions as your project evolves.