Sync permissions for specified apps, or all apps if none specified