From MoodleDocs
  • This allows a user to manage roles i.e. create, edit, delete, change base role definitions, allow role assignments and allow role overrides.
  • This capability is allowed for the default role of manager only. It may only be applied in the site/system context i.e. as a system role.