Loading Audio...
Restricting Accounts for Clarity's Ticketing App
So far, you’ve learned about how account restrictions can enhance security by segmenting data access for different sets of users. Now, you’ll apply this knowledge to Clarity’s ticketing system to ensure that tickets are only accessible to specific accounts.
Exercise: Enabling Account Restriction for Tickets
Here you’ll establish account restriction for the Ticket object.
-
Open the Global Menu (
), go to the Control Panel tab, and click Objects.
-
In the Default object folder, select the Account system object.
-
Go to the Relationships tab, click Add (
), and enter these details:
Field Value Label Account to Tickets
Name accountToTickets
Type One to Many Many Records Of Ticket Enable Inheritance No -
Click Save.
-
Return to the Object Editor UI, go to the Ticketing folder, and select the Ticket object.
-
On the Details tab, go to Account Restriction and toggle Enable Account Restriction.
-
Set Account Restricted Field to
Account to Tickets
. -
Click Save.
Great! You've configured account restriction. This ensures that all new tickets are linked to individual customer accounts and are only accessible by account members.
Exercise: Creating Tickets to Verify Account Restrictions
Here you’ll create tickets to test the newly enabled account restriction.
-
Open the Global Menu (
), go to the Applications tab, and click Tickets under Custom Apps.
-
Click Add (
) and select Iris Optical for the Account to Ticket field.
-
Fill out any mandatory ticket details and click Save.
-
Go to the Ticket Attachment tab.
-
Click Add ().
-
Repeat the steps above to create a second ticket, this time selecting Retro Eyewear for the Account to Ticket field.
-
Log out and log in as Renee Salinger of Iris Optical.
- Email:
renee.salinger@irisoptical.com
- Password:
learn
- Email:
-
Open the Global Menu (), go to the Applications tab, and click Tickets under Custom Apps.
-
Verify that only the Iris Optical ticket appears.
-
Verify you can access the ticket’s attachment.
The attachment is accessible because the object inherits permissions from the Ticket object, which is restricted to the Iris Optical account. Without Root Object inheritance, you would have needed to define a separate relationship between Ticket Attachments and Accounts to enable account restriction. -
Log out and log in as Emily Hudson of Retro Eyewear.
- Email:
emily.hudson@retroeyewear.com
- Password:
learn
- Email:
-
Go to the Tickets page and verify that only the Retro Eyewear ticket appears.
Great! You've verified that the newly enabled account restriction for tickets is working as intended.
Conclusion
Congratulations! You've successfully enabled account restrictions for Clarity's ticketing system, enhancing data security. This ensures that tickets are accessible only to authorized users within their respective accounts. Next, you’ll learn about auditing objects in Liferay.
Capabilities
Product
Education
Contact Us