I created a flow that has to access the profileId of Order.Owner:

enter image description here

But when the user runs the flow, the following error occurs: "An error occurred: The flow failed to access the value for GetOrderRecord.Owner:User.Profile.Id because the field is not available to the running user."

I saw that the user's profile can't access "Profile" SObject. I'm trying to give access to it, but there are no options like other objects (see the picture bellow). What could I do? enter image description here

  • Can you try adding "Manage User" permission on permission set Nov 7, 2022 at 5:02
  • 1
    is flow running in system context or user context? see help
    – cropredy
    Nov 7, 2022 at 5:06
  • @cropredy I changed it to system context and it worked! But is there a solution to give access to the user's profile to "Profile" SObject?
    – Cline
    Nov 7, 2022 at 13:49
  • Have you tried the above permission? Nov 7, 2022 at 14:01
  • @cropredy Yes, it has only the tab view options about "Profile" sobject
    – Cline
    Nov 7, 2022 at 20:26

1 Answer 1


Salesforce defaults the execution context based on the type of flow

  • User
  • System w/ sharing
  • System w/o sharing

User context enforces CRUD, FLS and sharing (i.e. record visibility). System context ignores FLS and CRUD and you can choose to include w/ or w/o sharing

You can change the default by using the Advanced setting for the Flow.

For your use case, it might be safer to switch the context to System rather than granting that user via a permission set Manage Users permission which would open up access to the Profile for a given OwnerId

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.