* Add permissions api * Integrate permissions service * Reduce cyclomatic complexity of the MakeNode function