Open a new file in notepad.
Write this simple code:
Now save the file. Name it as roles.php
Open your FTP client and upload the file roles.php in wp-admin folder which will be found in public_html.
Once the file is uploaded in wp-admin folder. Go to your Wordpress Dashboard and open the following path:
Please, note that 'yoursite.com' will be replaced with your domain name.
The file will display a detailed information about roles and capabilities each user group has on your Wordpress site. This is very useful information especially when you want to restrict a specific group from performing certain activities and want to see where exactly to make changes.