AppMachine's "Lock" block offers a "User Groups" feature that allows you to create groups of registered users that can be granted access to specific blocks. To create a user group, follow the steps below:
Create a New User Group
- Open your app and click on the "Users" section in the left vertical menu.
- Click on the "Groups" tab. This is where you will be creating your User Groups.
- Click on the blue "Create New Group" button.
- Give your new group a name. Click "Save."
Assign a registered user to a User Group
- Open your app and click on the "Users" section in the left vertical menu.
- Click on the "Users" tab.
- Select the user you would like to assign to a User Group.
- Click on the "Groups" tab. This area shows the groups this user is a member of and allows you to assign the user to more groups.
- Click on the blue "Assign to a group" button.
- Select the appropriate group from the dropdown menu. In this case we've chosen "Sales Team."
- Repeat steps 5 and 6 to assign the user to multiple groups.
Use User Groups in the "Lock" block
- Add a Lock block to the app and select the "User Groups" option.
- In the Lock block's "Settings" tab, select the groups from the multi-select dropdown menu that should have access to the block.
- Follow the steps above in the "Assign a registered user to a User Group" to make sure all users who need access can open the locked block.