You need to sign in to do that
Don't have an account?
Jennifer.Schnell
How do I query for the name and UserRole.Id?
How do I query for the name of role and UserRole.Id for the org using Developer Console?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Even you can use below one to see username and role on the same row
All Answers
Select Id ,UserName, UserRole.ID from user? Neither one works, do I have to specify a specific user? I am looking to return the Name and ID of all the roles we have defined in our org.
Even you can use below one to see username and role on the same row
Its Standard filed.Pls refer this image below
Refer this link
https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/intro_api_tooling.htm