1

To access the Metadata API users need the Modify All Data permission. But that's not available for Communities users.

Is there any way to access the Metadata API in Apex while running as a Communities user? My only way so far is by first logging in as an administrator but that's not a great solution.

  • Curious to know why do you even need that? – Raul Feb 6 '17 at 22:36
  • @RahulSharma trying to get list view details. – Mossi Feb 6 '17 at 22:57
0

The answer to this question is No.

Metadata API allows user to deploy and retrieve org configuration. Salesforce would not allow a community user to Deploy metadata into your org or delete something which could break the production.

If you need List view access: A community users can access list view only which they have access individually or by group. If you are looking to provide access to all list views then you will need to give access of all those list views to that user.

If you want to read List view metadata: put some schedulable batch which would read the list view as administrator in a frequency and then store that information in a custom object which a community user can read.

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.