Capabilities Not Changing

I believe your code is right. Try going to: ‘wp-admin/users.php’ manually to check if you have the privilege to do so. If my inkling is right, it’s just the $submenu item that is hidden.

If you can access the list of users, try printing the global variable $submenu and see if ‘users.php’ is there.