AWS cognito custom user roles for authorization

Hi Hackers!

I am doing a research about how to manage 3 different types of roles for my app, those roles are:

  • Admin
  • Managers
  • Authors

At first I thought that a cognito pool should be used to re-register and authenticate the user, then later our app logic and the database were used to handle our roles… buuuut… I just found this comment:

So I was wondering: Are there any simple but working examples covering what I am looking for? Probably I am missing something from the docs I guess.

Thanks a bunch!