Enabling Clarity's Delegated Administration
Liferay’s account roles support distributed access control, enabling B2B customers to manage their own teams. Clarity wants to empower its distributors to handle their own user management, reducing the burden on internal support staff. To achieve this, they’ll leverage account roles to provide scoped permissions for account users to manage their team’s available actions.
In these exercises, you'll expand Clarity’s delegation model by creating a custom role, assigning roles to users, and enabling administrators to delegate purchasing responsibilities.
Exercise: Creating Clarity's Associate Buyer Role
Clarity needs a new distributor buyer role that doesn’t include permissions to manage payment or delivery terms. Here, you’ll create this new Associate Buyer role as Clarity’s IT Manager, Ian Miller.
-
Sign in using these credentials:
-
Username:
ian.miller@clarityvisionsolutions.com -
Password:
learn
-
-
Open the Global Menu (
), go to the Control Panel tab, and click Roles.
-
Go to the Account Roles tab.
-
Click Actions (
) for the Buyer role and select Duplicate.
-
For New Role Name, enter
Associate Buyerand click Save. -
Navigate to the Define Permissions tab.
This displays all permissions granted by the Associate Buyer role. -
For each permission listed below, click Remove and then OK to confirm.
| Section | Permission |
| Open Carts > Orders | Manage Commerce Order Payment Methods |
| Open Carts > Orders | Manage Commerce Order Shipping Options |
| Open Carts > Orders | Manage Multishipping |
| Open Carts > Orders | Manage Order Delivery Terms |
| Open Carts > Orders | Manage Order Payment Terms |
Great! You’ve created an Associate Buyer role that can create and check out orders without modifying an account’s payment, delivery, or shipping methods.
Exercise: Assigning Users to B2B Accounts
To improve self-service, Clarity wants to grant distributor managers the Account Administrator role so they can manage their own team's users and permissions. Here, you’ll assign this role to a Beaumont Optics LTD user as Ian Miller.
-
Open the Global Menu (
), go to the Control Panel tab, and click Accounts.
-
Select the Beaumont Optics Ltd account.
-
Go to the Users tab.
Note that Chloe Hunter is assigned to this account. -
Click New and select Assign Users.
-
Select Mark Walker and click Assign.
-
In the list of users associated with the account, click Actions (
) for Mark Walker and select Assign Roles.
-
Select Account Administrator and click Done.
Well done! You’ve assigned Mark Walker the Account Administrator role. He is now able to manage roles and permissions for his team.
Exercise: Delegating the Buyer Role
Now that Mark is an Account Administrator, he can configure roles for his colleagues without reaching out to Clarity’s support team. Here, you’ll delegate account responsibilities as Mark by assigning the Associate Buyer role to a team member.
-
Sign in using these credentials:
- Username:
mark.walker@beaumontoptics.com - Password:
learn
- Username:
-
Click the User Profile Menu and select My Sites.
-
Go to the My Sites tab and select Distributor Portal.
-
Navigate to the Account Management page: http://localhost:8080/web/b2b/account-management.
-
Select the Beaumont Optics Ltd account.
-
Go to the Users tab.
-
Click Actions (
) for Chloe Hunter and select Assign Roles.
-
Select Associate Buyer and click Done.
Great! As Mark, you’ve successfully delegated the new Associate Buyer role to Chloe.
Exercise: Verifying Account Delegation
Here, you'll verify that Chloe Hunter can perform the expected actions using her new role.
-
Sign in using these credentials:
- Username:
chloe.hunter@beaumontoptics.com - Password:
learn
- Username:
-
Navigate to the Account Management page: http://localhost:8080/web/b2b/account-management.
Unlike Mark, Chloe doesn’t have adequate permissions to edit the account’s details. -
Navigate to the Catalog page: http://localhost:8080/web/b2b/catalog.
-
Click Add to Cart for a product.
-
On the top right, click Cart (
) and click Submit.
Great! You’ve confirmed the Associate Buyer role enables Chloe to build carts and checkout without allowing her to edit the account’s details.
Conclusion
Delegated administration is crucial for creating scalable B2B solutions that reduce administrative overhead. You’ve successfully implemented this structure for Clarity, empowering their B2B partners to manage their own teams by correctly assigning and verifying account roles.
Next, you’ll review what you’ve learned before moving on the next module.
Capabilities
Product
Education
Knowledge Base
Contact Us