0
0
No-Codeknowledge~30 mins

Privacy rules and data access in No-Code - Mini Project: Build & Apply

Choose your learning style9 modes available
Privacy Rules and Data Access
📖 Scenario: You work in a company that handles customer information. You need to set up simple privacy rules to control who can see or change certain data.
🎯 Goal: Build a clear set of privacy rules that define who can access or modify specific types of data.
📋 What You'll Learn
Create a list of data types with exact names
Define a list of user roles with exact names
Assign access permissions for each role and data type
Specify modification rights for each role and data type
💡 Why This Matters
🌍 Real World
Companies use privacy rules to protect sensitive customer data and ensure only authorized people can see or change it.
💼 Career
Understanding privacy rules is important for roles in IT security, data management, and compliance to keep data safe and follow laws.
Progress0 / 4 steps
1
Create the list of data types
Create a list called data_types with these exact entries: 'Personal Info', 'Payment Details', 'Order History', 'Support Tickets'.
No-Code
Need a hint?

Use square brackets to create a list and include all four data types as strings.

2
Define user roles
Create a list called user_roles with these exact entries: 'Admin', 'Support', 'Customer'.
No-Code
Need a hint?

Use a list with the exact role names as strings.

3
Assign access permissions
Create a dictionary called access_permissions where keys are role names from user_roles and values are lists of data types from data_types that each role can access. Use these exact permissions: 'Admin' can access all data types, 'Support' can access 'Personal Info' and 'Support Tickets', 'Customer' can access 'Personal Info' and 'Order History'.
No-Code
Need a hint?

Use a dictionary with role names as keys and lists of allowed data types as values.

4
Specify modification rights
Create a dictionary called modification_rights where keys are role names from user_roles and values are lists of data types from data_types that each role can modify. Use these exact rights: 'Admin' can modify all data types, 'Support' can modify only 'Support Tickets', 'Customer' cannot modify any data (empty list).
No-Code
Need a hint?

Use a dictionary with role names as keys and lists of data types they can modify as values. Empty list means no modification rights.