Access Control Settings

Set a model's permissions to execute, read, and write

Goals: Set Permissions for the appUser model

  1. Run the following loopback CLI command: lb acl

  2. Select the model that you wish to grant permissions to

  3. Select all method and properties to grant this model the ability to read, write and execute.

  4. Define the type of user that can perform the actions, in our case only authenticated users should be able to post, read, and write data.

  5. Finally, apply the permissions that you have chosen.

Last updated