0

We have a running application that has a custom lightning component to create partner users. User is successfully created in the context of System Admin. But when trying to create a partner user in the context of a salesforce platform user, we get an INVALID_FIELD error on the ProfileId field of the user.

After looking into existing questions, I found that "View Setup and Configuration" permission is required to access a profile on the user object. Even after enabling the permission on the profile level, the User gets the same INVALID_FIELD error for the profileId field of the user object.

Is there any other permission required to access profileId field of User object?

2
  • Try adding System permission > Manage User to your permission set
    – Badbaxx
    Commented Jan 25, 2021 at 10:24
  • We can not add 'Manage Users' permission to the profiles having Salesforce Platform user license.
    – Aakriti.G
    Commented Jan 25, 2021 at 10:35

1 Answer 1

1

Just follow this steps:

  • Navigate to the specific user details in Salesforce
  • Go to Permission Set License Assignment of that user
  • Assign Salesforce API Integration which contains "Manage Users" in the permission which will give the "View Setup and Configuration" permission also

Permission Set License

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .