How to provide access to specific plugin to all the user roles except subscriber in wordpress

Got a fix for this.
Get current user id and based on ID get current user info.From that user info get user role. If user role is not subscriber then only we can add menu page. This way editors/contributors can access plugin.

Below is the working code.

<?php
    $userID = get_current_user_id();
    $user = new WP_User($userID);
    $userRole =  $user->roles[0];
    if($userRole!="subscriber")
    {
    $Access_Role =$userRole;      
    $UPCP_Menu_page = add_menu_page($page_title, $menu_title, $Access_Role, 'UPCP-options', 'UPCP_Output_Options',null , '50.5');
    add_action("load-$UPCP_Menu_page", "UPCP_Screen_Options");
    }
?>