Salesforce.com setup screen has, in "Administer" section -> "Manage Apps" menu -> "Connected Apps" -> edit app page, a setting called "Permitted Users". This setting allows the portal administrator to decide if users can be allowed to approve the connected app themselves or to auto-approve the app for any profile admin wishes.

My problem is: when doing a metadata download through the Force.com Migration Tool, I can't find this setting. Am I missing something, or is this setting cannot be accessed with the Metadata API?

Thank you.

1 Answer 1


As far as I can tell, it's not supported by the Metadata API. What's weird, however, is that there's no mention of permissions under ConnectedApp, which suggests that it is not supported, but it's also not mentioned under Unsupported Metadata Types, which mildly suggests that it is supported. That said, since it can't be found in either place, and given the fact that I can't seem to find it in the metadata either, suggests that it's not supported. You may want to open a case with support to confirm that it's not supported, since we probably need to submit feedback to the documentation team to have the manual updated.

  • Thank you for your answer; I'll try to contact the Salesforce support. I'll keep this question opened for a while - I'll accept your answer as soon as support gets.back to me. Aug 28, 2016 at 14:51
  • @DmitriyKhudorozhkov Sure thing. In fact, I'd love to be wrong, because it seems awfully inconvenient to not have this available by way of the API.
    – sfdcfox
    Aug 28, 2016 at 14:59
  • absolutely. I've just stumbled upon this very situation :/ Aug 28, 2016 at 15:04
  • I don't really believe my eyes as this is a loong time coming, but looks like Summer '20 is making oauthPolicy and sessionPolicy visible and hopefully editable: releasenotes.docs.salesforce.com/en-us/summer20/release-notes/… Jun 4, 2020 at 13:37
  • Facing this exact situation, but seems the metadata APIs still do not support it. Nov 25, 2021 at 12:46

You must log in to answer this question.

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