This question already has an answer here:
Is there a way to do this without using another plugin and without modifying WP core code:
I want to give the custom plugin I am writing a settings page. So I will need to add plugin capabilities to the role that uses my plugin. However, I do not want those users to see or be able to change settings for any other plugins that might be installed. Just my plugin.
I was hoping there was something like $role_object->add_cap('update_settings_myPlugin'), similar to the way capabilities can be mapped to roles for custom post types.