public static List<UserPermission> getUserPermissions(Configuration conf, byte[] entryName,
    byte[] cf, byte[] cq, String user, boolean hasFilterUser) throws IOException {
    ListMultimap<String, UserPermission> allPerms =
      getPermissions(conf, entryName, null, cf, cq, user, hasFilterUser);
    List<UserPermission> perms = new ArrayList<>();
    for (Map.Entry<String, UserPermission> entry : allPerms.entries()) {
      perms.add(entry.getValue());
    }
    return perms;
  }
Returns the currently granted permissions for a given table/namespace with associated
permissions based on the specified column family, column qualifier and user name.
@param conf          the configuration
@param entryName     Table name or the namespace
@param cf            Column family
@param cq            Column qualifier
@param user          User name to be filtered from permission as requested
@param hasFilterUser true if filter user is provided, otherwise false.
@return List of UserPermissions
@throws IOException on failure
hbase-server/src/main/java/org/apache/hadoop/hbase/security/access/PermissionStorage.java