Fluent Commerce Logo
Docs
Sign In

User Creation and Editing Mutations

How-to Guide

Author:

Fluent Commerce

Changed on:

30 Nov 2023

Key Points

  • A user can be created and modified via UI.
  • The user creation requires the associated Location, Retailer, Role, and Context. It’s also possible to add extra attributes.
  • It’s only possible to ADD roles to the user on the UI. Removing roles is not feasible from the UI.

Steps

Step arrow right iconPrerequisites:

  • Mutations createUser and updateUser are enabled in the manifest.
  • The user has an assigned role with the following permissions
    • USER_VIEW
    • USER_CREATE
    • USER_UPDATE

Step arrow right iconFollow the steps to create a User:

Step 1. Click on the CREATE USER button on the Users List page.

Step 2. Fill in the necessary information. Some fields are mandatory for filling, so the validation proceeds. 


Step 3. Add a role/roles to a newly created user. Click on the + ADD ROLE button, and the Roles form will appear. To add context to a role, it is necessary to click on the + CONTEXT button, and inside the Role form, the Context form will appear.

Step 4. Adding an attribute/attribute to a newly created user is possible. In this case, one must click the + ADD ATTRIBUTE button, and the Attributes form will appear.

Step 5. Click on the SUBMIT button. A new user is created in the System. After refreshing the page, the newly created user will be displayed in the Users List.

Step arrow right iconFor editing a User, follow the steps:

Step 1. Click on the EDIT button on the User Details page.


Step 2. While editing, adding new roles/roles to a user is possible. Click on the + ADD ROLES button, and the Roles form will appear. To add context to a role, click on the + CONTEXT button, and inside the Role form Context form will appear.


Step 3. It is possible to add new attribute/attributes to the edited user. In this case, one needs to click on the + ADD ATTRIBUTE button, and the Attributes form will appear.


Step 4. Finish editing the user and click on the SUBMIT button. The drawer will close, and the update will be processed.

Fluent Commerce

Fluent Commerce