Update hook to give users effective same permissions when module permissions change in Drupal
- update hook update permissions Drupal 8
- drupal 8 update hook config load config save
- migrate permissions when changed in a module to be more finer grained Drupal 9
For example, it’s frequently a good idea for Drupal
General documentation:
https://www.drupal.org/docs/drupal-apis/update-api/updating-configuration-in-drupal-8