Considering you've asked basically the same question four times today, I believe you may be having an X-Y Problem. Please, just tell us what you're trying to do, and let us help you.
I understand, but it appears that you're asking about solving one problem to solve another problem. None of the questions explain why you're trying to do what you're trying to do, which makes me think you're asking about a bunch of Y problems instead of an X problem. Please read the link I provided above.
ok @sfdcfox what you want,I will explain my problem to you
Userrole object is not accessible for particular user why? That is my Problem@sfdcfox,That is standard object for salesforce,if i go to object settings permissions also it is not showing there to enable permissions
I don't think anyone knows why. You're still asking a Y question. Who is this user? What is their profile and user role? Why do they need access to the user role object? Just state your primary goal.
@javanoob no, docs say that all users have access to the object. I checked just to be sure.
The list is showing the label for the objects. UserRole is simply listed as "Role", and it appears directly above the User entry (highlighted in screenshot).
I don't think it's anything to do with Salesforce directly. It may be a bug with the software you're using. I don't think there is anything you can do.
Anyway..Thanks again @sfdcfox Learnt that Userrole cannot have custom object and I liked your way of troubleshooting. Will definitely buy your book once it is published..