I am using Moodle 3.1+. I have created a role 'Associate' and gave capabilities moodle/user:create and moodle/role:assign. Role archetype is 'Course creator'. Now when I visit the page 'Assign system roles', it shows the message
Assigning of roles in this context has not been enabled by an administrator.
I want the user with 'Associate' role to be able to create and assign sub admin roles. 'Sub admin' should be able to manage the courses created by 'Associate'.