return error if we can't parse permissions