// Grant TABLE ADMIN privs on test table to UserA
HTable acl = new HTable(conf, AccessControlLists.ACL_TABLE_NAME);
try {
AccessControllerProtocol protocol = acl.coprocessorProxy(
AccessControllerProtocol.class, TEST_TABLE);
protocol.grant(new UserPermission(Bytes.toBytes(TABLE_ADMIN.getShortName()),
TEST_TABLE, null, Permission.Action.ADMIN));
} finally {
acl.close();
}