Role Creation and Editing Mutations
Author:
Fluent Commerce
Changed on:
3 May 2024
Key Points
- When creating or editing roles, ensure to define permissions accurately to maintain system security.
- Follow the best practices for naming conventions and role descriptions for easier management and clarity.
- Test role changes in a controlled environment before applying them to the live system to avoid unintended access issues.
Steps
Prerequisites:
- Mutations createRole and updateRole are enabled in the manifest.
- The user has an assigned role with the following permissions
- PERMISSION_VIEW
- ROLEPERMISSION_UPDATE
- ROLE_CREATE
- ROLE_UPDATE
- ROLE_VIEW
Follow the steps to create a Role:
Step 1. Click on the CREATE ROLE button on the Roles & Permissions List page.
Step 2. Fill in the necessary information. Field Name is mandatory for filling, so the validation proceeds.
Step 3. To add permissions to the created role, click the +PERMISSIONS button, and the Permissions form will appear.
Step 4. Click on the SUBMIT button. A new role is created in the System. After refreshing the page, the newly created role will be displayed in the Roles & Permissions List.
For editing a Role, follow the steps:
Step 1. Click on the EDIT button on the Role Details page.
Step 2. To add permissions to the edited role, click on the +PERMISSIONS button, and the Permissions form will appear.
Step 3. Deleting a newly added permission is possible by clicking on the Remove button.
Step 4. Finish editing the role and click on the SUBMIT button. The drawer will close, and the update will be processed.No change is saved.