Working with Accounts

Working with Accounts

Accounts in Liferay can represent individual customers in a B2C (i.e. business to consumer) context. Or they can represent a B2B (i.e. business to business) context with multiple users. See Accounts to learn more.

Marvelous Markets operate supermarkets across the country. Each store purchases maple syrup from Delectable Bonsai. The example below shows how to set up and account for one of the markets and assign an account user.

Adding Accounts

Create a business type account:

  1. Navigate to Global Menu (Global Menu) → Control PanelAccounts. Click Add Account (Add icon).

  2. In the new window, enter Marvelous Markets NYC for account name. Click Save.

  3. Click the Addresses tab. Click Add (Add icon). Enter the following information:

    • Name: Marvelous Markets NYC
    • Country: United States
    • Street 1: 123 Anywhere St
    • City: New York
    • Region: New York
    • Postal Code: 10027
  4. Click back to the Details tab.

    • Scroll down to the default account address section.
    • Click Set Default Address under the billing heading.
    • Select the address you just created.
    • Click Save.
    • In the same way, set the default address for the shipping address.

Adding Account Users

Create a new user for the account you just made. Note, you can create new users for accounts or associate exiting users with an account.

  1. Navigate to Global Menu (Global Menu) → Control PanelAccount Users.

    • Click Add User (Add icon).
    • Click Choose next to Marvelous Markets NYC.
  2. Create the following store manager:

    • Screen Name: Noah
    • Email Address: [email protected]
    • First Name: Noah
    • Last Name: Norman
    • Job Title: Store Manager

    Click Save.

Assigning Account Roles

Each business account can have multiple users and multiple roles. For example, the account buyer may handle creating orders, but the order manager may handle approving the orders.

Assign Noah Norman the order manager role. In this way, Noah’s employees can add items to the account’s shopping cart, while Noah gives the final approval.

  1. Navigate to Global Menu (Global Menu) → Control PanelAccounts.

    • Click Marvelous Markets NYC.
    • Click the Roles tab.
    • Click Order Manager.
  2. In the next window, click Assign User (Add icon). Select Noah Norman and click Assign.

    As Noah’s employees add orders to the account, Noah is able to approve and manage orders. See Commerce Roles Reference to learn more about these roles.

Managing Accounts

Use account groups to help organize and manage multiple accounts. For example, Delectable Bonsai can choose to apply lower pricing for any market that is part of the Marvelous Markets account group.

  1. Navigate to Global Menu (Global Menu) → Control PanelAccount Groups. Click Add Account Group (Add icon).

  2. Give the name Marvelous Markets for the account group name. Click Save.

  3. Click the Accounts tab.

    • Click Assign Account (Add icon).
    • In the new window, select Marvelous Markets NYC and click Assign.

    In this way, different Marvelous markets in other locations can be added to the group.

In a larger B2B context with multiple accounts under the same entity, it may make sense to create a dedicated organization. Then you can assign an account manager role over the whole organization. For example, with many locations, all Marvelous Market accounts can be placed under an organization. Then someone from Delectable Bonsai can be assigned an account manager role to oversee all the accounts.

  1. Navigate to Global Menu (Global Menu) → Control PanelUsers and Organizations.

    • Click the Organizations tab.
    • Click Add (Add icon).
    • Enter Marvelous Markets in the Name field.
    • Click Save.
  2. Navigate to Control PanelAccounts. Click Marvelous Markets NYC.

    • Click the Organizations tab.
    • Click Assign Organizations (Add icon).
  3. In the new window, select Marvelous Markets and click Assign. The Marvelous Markets NYC account is now part of the Marvelous Markets organization.

    Marvelous Markets NYC is now part of the Marvelous Markets organization.

  4. Now make Lily Lewis an account manager. Navigate to Control PanelUsers and Organizations.

    • Click on Lily Lewis.
    • Click Organizations in the left navigation.
    • Click Select.
    • Click Choose next to Marvelous Markets.
    • Click Save.

    Lily Lewis is now also part of the Marvelous Markets organization.

  5. Click Roles in the left navigation.

    • Click Select next to organization roles.
    • Click Choose next to Account Manager.
    • Click Save.

    Lily Lewis is now an account manager for Marvelous Markets.

    Lily Lewis is now an account manager for all accounts in the Marvelous Markets organization. The account manager can take actions, such as placing orders on behalf of account users.

Congratulations! You have completed this module on users, accounts, organizations, and permissions.

Relevant Concepts