Auto authorize my users to use live chat feature


I’m new to Rocket.Chat, and I’m finding a solution to add the group chat - private chat message system to adapt to my current app.

So, the thing is:

  • My app is the project management system, in each project will have members.
  • I want to create the chat channel for each project, automatically (using API maybe)

And the question is:

  • How can I automate authorize the user in each project, to chat in a group I have created?

Thank you in advanced!