Role and Role Restriction API

Hello All,
I’m developing an external tool based on API for projects import in Kanboard and I’m struggling in order to set custom role and associated restrictions.
Surfing API documentation didn’t help, can’t find anything useful… Is this functionality available out of the box?
If not, is there a way to accomplish it maybe with a plugin?
Any suggestions really appreciated!