Configuring Data and Permission Associations in Strapi: Using Admin Panel or Custom Code?

System Information
  • Strapi Version: v4.17.1
  • Operating System: mac os
  • Database: mysql
  • Node Version: v18.16.0
  • NPM Version: 9.8.0
  • Yarn Version:

After creating an API using Strapi, I want to associate data in a table with permissions, so that users with different roles can access different data through the API. How can I configure this using the admin panel? If I need to implement it through code, do I have to write custom find queries for each table? Are there any plugins available to achieve this functionality?