HUE-950 [core] Adding API for permissions