Skip to main content
added 139 characters in body
Source Link
Pragati Jain
  • 1.6k
  • 10
  • 11

Use the following queryThere is a mistake in your SOQL to fetch role name and profile name from user object using REST API. Use the following query:

  SELECT Profile.Name, UserRole.Name, Id, Name FROM User;

You are getting invalid_grant: authentication failure so you probably need to include your API security token with the password.

Use the following query to fetch role name and profile name from user object using REST API:

  SELECT Profile.Name, UserRole.Name, Id, Name FROM User;

There is a mistake in your SOQL to fetch role name from user object. Use the following query:

  SELECT Profile.Name, UserRole.Name, Id, Name FROM User;

You are getting invalid_grant: authentication failure so you probably need to include your API security token with the password.

Source Link
Pragati Jain
  • 1.6k
  • 10
  • 11

Use the following query to fetch role name and profile name from user object using REST API:

  SELECT Profile.Name, UserRole.Name, Id, Name FROM User;