Thanks for your help, Sure I tried this one but as I mentioned above it’s not working for custom user role I created the custom role basically by adding this code to theme function.php
function wps_add_role() {
add_role( 'manager', 'Manager',
array(
'read',
'edit_posts',
'delete_posts',
)
);
}
add_action( 'init', 'wps_add_role' );