HUE - add permission to AD Group via code/API

Currently, when we add a new AD Group (via LDAP Sync) we have to manually add the permissions to the group by click...click...click..click....and then save. When we have lots of groups to add, this can be a painfully slow process.

Does anyone know if there is a way to run a statement in Beeline (sort of like a GRANT statement) that we could use to add permissions to an AD Group?

Re: HUE - add permission to AD Group via code/API

No, this isn't what I am looking for. I know how to use the Create and Grant for Sentry Roles for Hive.

I am not sure if you are familiar with HUE, but there is a way to add an AD Group (either manually or via LDAP Sync). Once you add the AD Group, you need to assign Permissions to features of HUE - Filebrowser Access, HBase access, Pig access, Oozie access, etc. I am trying to find a way to set the permissions without having to click hundreds of time when i add AD Groups.