Fluent Commerce Logo
Docs
Sign In

Control webapps STORE AND OMS UI by using roles and action in manifest

How-to Guide

Author:

Fluent Commerce staff

Changed on:

14 Sept 2023

Key Points

  • describes how to set up the user to see the “query” only page or “edit” entity page by using User Roles and UserAction in Manifest.
  • The below example demonstrates where "Finance" users in "query" only mode on OMS data and "CustomerService" cancel orders and other user actions.

Steps

Step arrow right iconCreate a new user Finance and assign to ROLE: FINANCE_USERS role

No alt provided

Step arrow right iconCreate a new user Customer Service and assigned to ROLE: CUSTOMER_SERVICE_USERS role

No alt provided

Step arrow right iconIn my app reference setting (fc.mystique.manifest.oms3), include 2 fragment manifests, finance and customer service

No alt provided

Step arrow right iconIn the customer service fragment manifest setting, apply CUSTOMER_SERVICE_USER into the roles:

No alt provided

Step arrow right iconFor each page that requires user action, set the action:TRUE:

No alt provided

Step arrow right iconLogin in as customer service user:

No alt provided

Step arrow right iconThe user will only see the screens with roles include CUSTOMER_SERVICE_USER:

No alt provided

Step arrow right iconIn the order page, the user action buttons are showing for customer service user

No alt provided

Step arrow right iconFor finance manifest fragment, include the ROLES: FINANCE_USER

No alt provided

Step arrow right iconIn this fragment, ensure all action is FALSE as the finance user is read only.

No alt provided

Step arrow right icon Login as finance user:

No alt provided

Step arrow right iconOnly manifest fragment with role FINANCE_USER are displayed:

No alt provided

Step arrow right iconIn the order detail screen, there are no user action buttons:

No alt provided

Step arrow right iconResult

By using User Roles and Manifest action:TRUE/FALSE, we can control user visibility. 

Fluent Commerce staff

Fluent Commerce staff

Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.

Fluent Logo