1

I am trying to query User record information in Community by using Community Plus user but getting following error: No such column 'ProfileId' on entity 'User' Any idea what specific permission my Community Plus user needs to access Profile object. I tested with System Administrator / Standard Salesforce user and it works but for Community Plus User it doesn't.

  • Provide more information how you are accessing profile info – Santanu Boral Mar 8 '18 at 21:06
  • I am running simple REST Query Api call on User object and it returns that INVALID_FIELD error – balinder singh Mar 8 '18 at 21:08
  • JRather than the profile object, I think you should set permissions for User object. – Venkataraman Mar 8 '18 at 21:22
  • If I remove that field I am able to query successfully that's why I thought it is related to profile permissions.. How do you make sure ProfileId is accessible if you were to set permission on user object? – balinder singh Mar 8 '18 at 21:33
4

According to Salesforce documentation:

Profile Represents a profile, which defines a set of permissions to perform different operations, such as querying, adding, updating, or deleting information.

Special Access Rules

Customer Portal users can't access this object.

Partner portal users can’t access this object.

https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_profile.htm

  • ohh.. my bad I should have checked Profile object documentation .. That make sense .. Thanks man.. – balinder singh Mar 8 '18 at 21:46
  • Thanks. If the answer is sufficient, please mark it as the best answer to close out this question @balindersingh – DavidSchach Mar 8 '18 at 21:47
  • one quick related question though .. Is there any specific permission we need to assign if it is not accessible to other user types like any Administrative or General user paermission Or it is going to be accessible by default for every other Users – balinder singh Mar 8 '18 at 21:54
  • It is not accessible by portal/community users. It will be accessible by internal users. – DavidSchach Mar 8 '18 at 21:59
  • nvm .. I found specific permission needed for that accessibility 'Manage Internal Users' and 'Manage External Users' thanks @DavidSchach – balinder singh Mar 8 '18 at 22:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.