I finally solved it using the user-permissions role service.
Iterated through the permissions while updating the permissions for each api
I finally solved it using the user-permissions role service.
Iterated through the permissions while updating the permissions for each api