Rebuild node access permissions. Rebuilding will remove all privileges to content and replace them with permissions based on the current modules and settings.
$ drupal node:access:rebuild [options]
|--batch||Process in batch mode.|
- Rebuild node access permissions
$ drupal node:access:rebuild --batch